Fix for CRISP 1.9 bookmark coredumps
Stig Jacobsen
shj at login.dkuug.dk
Tue Sep 25 10:38:32 AEST 1990
Here's a ugly, kludgy patch for the bug that makes Crisp 1.9 coredump
when you try to goto a bookmark with Alt-G or the goto_bookmark
built-in. Feed the below text as input to patch.
== cut ==
*** builtin.c Tue Sep 25 02:30:07 1990
--- ../crisp/builtin.c Tue Sep 4 22:40:40 1990
***************
*** 397,402 ****
--- 397,407 ----
trace_acc();
bp->reference++;
# endif
+ /* Couldn't find the size of 'argv', but 5 is a nice number... */
+ /* bookmark.goto_bookmark doesn't test argc and crashes if argv's */
+ /* beyond argc contains bogus stuff. This kludges around it. */
+ for (i=argc; i<5; i++) /* shj */
+ argv[i].l_flags = F_NULL; /* shj */
return free_saved(saved_str, ss_cnt);
}
free_saved(saved_str, ss_cnt)
== cut ==
--
Stig Jacobsen
shj at login.dkuug.dk
More information about the Comp.unix.sysv386
mailing list