7 Apr
2014
7 Apr
'14
11:52 a.m.
Nick Alcock <nix@esperi.org.uk> writes:
First test_patterndb_tags_outside_of_rule() nulls out the messages pointer, then it calls clean_pattern_db(), which unconditionally dereferences it.
While I was under the impression that g_ptr_array_*() would handle a NULL ptr array, I see no harm in the patch itself, especially considering its in a test. I applied the patch to 3.5/master, thanks! For the record, I never saw the crash, so perhaps it happens only with specific glib settings... Do you have any G_DEBUG or similar environment variables set? If not, can you tell me how your glib was compiled, or which distro this crash happens on? -- |8]