Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Jean-Daniel Fekete
Mon, 03 Jul 1989 13:31
Bug in bash 0.99
Author: Jean-Daniel Fekete
Date: Mon, 03 Jul 1989 13:31
Date: Mon, 03 Jul 1989 13:31
19 lines
943 bytes
943 bytes
The following code produces a bug in realloc because some text is
copied beyond the allocated area of ``line''.
Fix: check for line length in alias.c and realloc if needed
*** alias.c.~1~ Thu Jun 8 08:51:51 1989
--- alias.c Mon Jul 3 14:55:18 1989
***************
*** 168,173 ****
--- 168,175 ----
return (line);
j = strlen (line);
+ if ((j + i - start) >= line_len)
+ line = (char *)xrealloc (line, line_len += (50 + j + i - start));
strncpy (line + j, string + start, i - start);
line[j + (i - start)] = '\0';
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads