[syslog-ng] [Bug 235] String arguments to block parameters get mistreated

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Fri May 24 09:52:04 CEST 2013


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





--- Comment #2 from Balazs Scheidler <bazsi at balabit.hu>  2013-05-24 09:52:03 ---
These are the related patches (should apply to 3.4 too):

commit e326f5c7962b802ab2f1e314fbbf49d7dbc0d451
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Tue May 21 11:54:54 2013 +0200

    cfg-lexer: implement proper escape handling in backtick insertion

    This patch implements escaping when inserting a value using
    backticks. When backticks are used to insert values within string
    and qstrings and the value itself is a syslog-ng.conf string literal
    we need to inject its value, adapting the escaped characters.

    While implementing this function, I also did:
     - moved to cfg_lexer_subst_args() to a separate module
     - added GError based error handling
     - unit tests

    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>

commit 3ac89d6819e47358486932f3385029a63208432a
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Tue May 21 11:38:28 2013 +0200

    cfg-lexer: added cfg_lexer_free_token() function

    The role of this function is to free any type of token returned by the
    lexer. Do note however that the YYSTYPE struct itself is managed
    by the caller, only its contents are freed.

    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>

commit 86166e44fb6f9838733b94c44e5fcc6c9f5c81ea
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Tue May 21 11:36:54 2013 +0200

    cfg-lexer.h: added GError based error handling boilerplate

    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>

commit 66754e36a4a21112430597488fb85ead5e7306e1
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Sat May 18 09:38:19 2013 +0200

    cfg-args: split off from cfg-lexer.c

    This is a preparatory patch that slices off functionality from cfg-lexer.c
    to make it easier to write unit tests for.

    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>


-- 
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