User: stephent
Date: 06/05/07 16:20:40
Modified: xemacs/src ChangeLog doc.c
Log:
Fix buffer overrun in extract_object_file_name.
Revision Changes Path
1.956 +4 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.955
retrieving revision 1.956
diff -u -p -r1.955 -r1.956
--- ChangeLog 2006/05/06 17:55:58 1.955
+++ ChangeLog 2006/05/07 14:20:33 1.956
@@ -1,3 +1,7 @@
+2006-05-02 Stephen J. Turnbull <stephen(a)xemacs.org>
+
+ * doc.c (extract_object_file_name): Fix buffer overrun.
+
2006-04-30 Stephen J. Turnbull <stephen(a)xemacs.org>
Move geometry management from EmacsFrameResize to x_set_frame_size.
1.37 +1 -1 XEmacs/xemacs/src/doc.c
Index: doc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/doc.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -p -r1.36 -r1.37
--- doc.c 2006/04/29 16:15:30 1.36
+++ doc.c 2006/05/07 14:20:36 1.37
@@ -47,7 +47,7 @@ extract_object_file_name (int fd, EMACS_
Ibyte *name_nonreloc, Lisp_Object name_reloc,
int standard_doc_file)
{
- Ibyte buf[DOC_MAX_FILENAME_LENGTH];
+ Ibyte buf[DOC_MAX_FILENAME_LENGTH+1];
Ibyte *buffer = buf;
int buffer_size = sizeof (buf), space_left;
Ibyte *from, *to;
Show replies by date