svn commit: r221386 - head/contrib/texinfo/makeinfo
Dimitry Andric
dim at FreeBSD.org
Tue May 3 14:43:16 UTC 2011
Author: dim
Date: Tue May 3 14:43:16 2011
New Revision: 221386
URL: http://svn.freebsd.org/changeset/base/221386
Log:
Fix stack smash problem in makeinfo, by increasing buffer sizes in
current_chapter_number().
Modified:
head/contrib/texinfo/makeinfo/sectioning.c
Modified: head/contrib/texinfo/makeinfo/sectioning.c
==============================================================================
--- head/contrib/texinfo/makeinfo/sectioning.c Tue May 3 13:34:40 2011 (r221385)
+++ head/contrib/texinfo/makeinfo/sectioning.c Tue May 3 14:43:16 2011 (r221386)
@@ -256,13 +256,13 @@ current_chapter_number (void)
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];
+ char s[11];
sprintf (s, "%d", numbers[0]);
return xstrdup (s);
}
More information about the svn-src-head
mailing list