# HG changeset patch # User James Chang # Date 1426526920 25200 # Node ID 746ec6382a1fb989cc8af7490557320af12a62cc # Parent 568dd7b9cf04e3ef49ee09c7cd72c79719d50652 20570467 buffer overflow in info in get_manpage_node() f diff -r 568dd7b9cf04 -r 746ec6382a1f components/texinfo/patches/man.c.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/texinfo/patches/man.c.patch Mon Mar 16 10:28:40 2015 -0700 @@ -0,0 +1,15 @@ +# Patch origin: internal +# buffer overflow in info in get_manpage_node() +# Sent to and incorporated into upstream + +--- texinfo-4.13/info/man.c Sat Jul 5 16:32:19 2008 ++++ texinfo-4.13/info/man.c Tue Mar 3 15:02:03 2015 +@@ -83,7 +83,7 @@ + int hlen, plen; + char *old_contents = file_buffer->contents; + +- sprintf (header, "\n\n%c\n%s %s, %s %s, %s (dir)\n\n", ++ snprintf (header, sizeof(header), "\n\n%c\n%s %s, %s %s, %s (dir)\n\n", + INFO_COOKIE, + INFO_FILE_LABEL, file_buffer->filename, + INFO_NODE_LABEL, pagename,