[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for a segfault bug in 'info' reader
From: |
Roman Werpachowski |
Subject: |
Patch for a segfault bug in 'info' reader |
Date: |
Sat, 7 Aug 2004 01:18:32 +0200 |
User-agent: |
KMail/1.6.2 |
diff -urN texinfo-4.7/info/echo-area.c texinfo-4.7.patch/info/echo-area.c
--- texinfo-4.7/info/echo-area.c 2004-03-14 01:57:29.000000000 +0100
+++ texinfo-4.7.patch/info/echo-area.c 2004-08-07 01:06:49.000000000 +0200
@@ -1510,8 +1510,8 @@
text[i] = 0;
echo_area_initialize_node ();
- sprintf (&input_line[input_line_end], "%s[%s]\n",
- echo_area_is_active ? " ": "", text);
+ snprintf (&input_line[input_line_end], EA_MAX_INPUT + 1 - input_line_end,
+ "%s[%s]\n", echo_area_is_active ? " ": "", text);
free (text);
the_echo_area->point = input_line_point;
display_update_one_window (the_echo_area);
The bug was pointed out on bugtraq by somebody else.
--
Ten e-mail został sprawdzony i
zaakceptowany przez fretkę Tintin.
- Patch for a segfault bug in 'info' reader,
Roman Werpachowski <=