[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
makeinfo segfault + patch
From: |
Arkadiusz Miskiewicz |
Subject: |
makeinfo segfault + patch |
Date: |
Mon, 3 Nov 2008 23:09:46 +0100 |
User-agent: |
PLD Linux KMail/1.9.10 |
No place for terminating \0 == segfault.
--- texinfo-4.13/makeinfo/sectioning.c.org 2008-11-03 23:01:26.957799459
+0100
+++ texinfo-4.13/makeinfo/sectioning.c 2008-11-03 23:02:10.180927044 +0100
@@ -256,14 +256,14 @@
return xstrdup ("");
else if (enum_marker == APPENDIX_MAGIC)
{
- char s[1];
+ char s[2];
sprintf (s, "%c", numbers[0] + 64);
return xstrdup (s);
}
else
{
char s[5];
- sprintf (s, "%d", numbers[0]);
+ sprintf (s, "%4d", numbers[0]);
return xstrdup (s);
}
}
--
Arkadiusz MiĆkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
- makeinfo segfault + patch,
Arkadiusz Miskiewicz <=