Skip to content

corrected SEGFAULT from the dereferencing of a NULL structure member

John Robertson requested to merge ergohack/dia:object-c-segfault into master

DiaObject member ops was dereferenced without checking for a NULL value. Added the …_if_fail() checks ahead of the dereferencing.

To duplicate this:

  1. Open a diagram,
  2. Use the Find dialog
  3. Close the Find dialog and close the diagram,
  4. Reopen the diagram,
  5. Use the Find dialog,
  6. "BOOM" on use of the 'Find' button.
Edited by John Robertson

Merge request reports

Loading