Bug in iconedit (SUN/3.0)

Barry Shein bzs at bu-cs.bu.edu
Tue May 20 08:07:12 AEST 1986


Description:

	Selecting text in iconedit would cause core dumps

Repeat-by:

	Same

Fix:

Initialize abc_string in iconedit_canvas.c to point to a null string
rather than default to be a null pointer. Diff follows (trivial.)

-------
*** /usr.MC68020/src/sun/suntool/iconedit/iconedit_canvas.c.orig	Mon May 19 14:43:41 1986
--- /usr.MC68020/src/sun/suntool/iconedit/iconedit_canvas.c	Mon May 19 14:45:12 1986
***************
*** 18,24
  /**************************************************************************/
   
  CELL_POS        abc_cell_origin,abc_h_cell_origin,abc_feedback_origin;
! char           *abc_string;
  struct pr_size  abc_size;
  int             abc_len;
  struct pixfont *abc_font;

--- 18,27 -----
  /**************************************************************************/
   
  CELL_POS        abc_cell_origin,abc_h_cell_origin,abc_feedback_origin;
! /*
!  *	BZS at BU-CS.BU.EDU - 5/19/86: was core dumping, add init to null string
!  */
! char           *abc_string = "";
  struct pr_size  abc_size;
  int             abc_len;
  struct pixfont *abc_font;

----

	-Barry Shein, Boston University



More information about the Comp.unix.wizards mailing list