[syslog-ng] [Bug 271] using json parser twice in two unnested log statements causes segfault

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Tue Feb 25 16:28:18 CET 2014


https://bugzilla.balabit.com/show_bug.cgi?id=271


Gergely Nagy <algernon at balabit.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|                            |FIXED
             Status|ASSIGNED                    |RESOLVED




--- Comment #1 from Gergely Nagy <algernon at balabit.hu>  2014-02-25 16:28:19 ---
This is patched on 3.5/master now: https://github.com/balabit/syslog-ng/commit/02239fa6cf60755831d5c58f434c80237beb9d14.patch

The problem was that when json-parser is used in two places, we clone the structure. In the process, we tried to clone the marker() setting too, which was not
set, so we ended up with a NULL string, and tried to strlen() that, which crashed. The solution is to only clone marker() if it is set in the original.


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list