use allocate memory before null check
Swiss army knife of image processing
Brought to you by:
bfriesen
In the latest version of GraphicsMagick, allocated memory is used without null pointer check which can cause a null pointer de-reference bug.
In codes/pdb.c line 673,674,675;
In codes/render.c line 2506 and following lines;
In magick/segment.c line 399 and following lines;
In magick/xwindow.c line 4669 and following lines;
The fixes are implemented in changeset 15944:4188ef30df01. Thanks for inspecting the code and reporting these issues.