Skip to content

Instantly share code, notes, and snippets.

@bazsi
bazsi / csvparser-grammar.y
Created January 23, 2021 15:08
grammar that triggers the bug
/*
* Copyright (c) 2002-2015 Balabit
* Copyright (c) 1998-2015 Balázs Scheidler
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@bazsi
bazsi / multiline-notes.txt
Created November 10, 2018 22:35
syslog-ng multi-line notes
1) transports to read multi-lines
- locally
- unix-dgram() does it, the syslog() API in glibc is transparent to NL
characters, so it'll be received properly
- named pipe (multi-line support same as files, the transport does not support it without that)
- from files
- regexp based: multi-line-mode(prefix-garbage) and multi-line-prefix/garbage options
- indentation based: multi-line-mode(indented)