Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!orion.cf.uci.edu!uci-ics!hadley From: hadley@ics.uci.edu (T.S. Hadley) Newsgroups: comp.windows.x Subject: Xhp Non-portable code Summary: NULL pointer dereferencing Message-ID: <19400@paris.ics.uci.edu> Date: 10 Jul 89 20:53:17 GMT References: <3780001@hpsgpa.HP.COM> Sender: news@paris.ics.uci.edu Reply-To: T.S. Hadley Organization: University of California, Irvine - Dept of ICS Lines: 20 Some of the Xhp code included with the X11 R3 distribution (contrib/widgets/Xhp) dereferences NULL pointers. Example: Xw/SText : ... strcpy(stp->output_string, stp->input_string); Where stp->input_string CAN be NULL. While this causes no problems (I'm told) on a Vax with VMS/BSD, on my Sun (SunOS 4.0) it immediately causes a segmentation violation. Has anyone created a patch to this library to fix the problem? Grateful thanks. -- Tedd Hadley (hadley@ics.uci.edu)