[syslog-ng] [PATCH] patterndb: Fix test_patterndb crash when testing outside-of-rule db lookups.

Gergely Nagy algernon at balabit.hu
Mon Apr 7 12:52:34 CEST 2014


Nick Alcock <nix at 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]



More information about the syslog-ng mailing list