14 Commits

Author SHA1 Message Date
purnima
d45daa2af0 Rebase,redefine msgDestruct() as smsg_t is used 2016-11-22 14:24:25 +05:30
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Rainer Gerhards
b3940cb966 remove excessive "inline" attributes 2016-06-03 12:24:27 +02:00
Rainer Gerhards
2e55c77d70 clean up doAction output module interface
We started with char * pointers, but used different types of pointers
over time. This lead to alignment warnings. In practice, I think this
should never cause any problems (at least there have been no reports
in the 7 or so years we do this), but it is not clean. The interface is
now cleaned up. We do this in a way that does not require modifications
to modules that just use string parameters. For those with message
parameters, have a look at e.g. mmutf8fix to see how easy the
required change is.
2016-01-13 04:04:26 -05:30
Rainer Gerhards
027ff7f47b mmfields: garbagge data could be added to field
this happened when very large fields were to be processed.

Thanks to Peter Portante for reporting this.

See also 455508b499 (commitcomment-14791455)
2015-12-04 17:49:57 +01:00
Rainer Gerhards
455508b499 mmfields: fix memory leak
This leak could occur if very large messages are processed.

Detected by clang static analyzer.
2015-12-04 16:27:00 +01:00
Janmejay Singh
15afe8245f created param in add-flow to indicate if a graph being added to global-variable is shared, so it can be deep-copied instead of referenced (external modifications to which can not be protected from unsafe concurrent access) + killed an unused function 2015-05-26 09:41:35 +05:30
Janmejay Singh
4ca5e217e2 Adds support for 'reset' statement (it has syntax similar to set 'set', but _unlike_ 'set' always force-sets the given value insteed of conditionally merging it, or not saving it because it is trying to replace an object with a leaf value etc).
Syntax:

reset $.foo = $!bar;

etc.
2014-12-17 11:39:31 +01:00
Rainer Gerhards
bbd0f01438 remove a couple of gcc --pedantic messages 2014-08-19 16:55:33 +02:00
Rainer Gerhards
1c5a172411 mmfields: support v8 omod interface 2013-11-13 13:11:04 +01:00
Rainer Gerhards
6ec2a6f423 mmfields: add "jsonRoot" parameter 2013-06-24 10:50:04 +02:00
Rainer Gerhards
98d731554b mmfields: store parsed-out fields in rsyslog dictionary 2013-06-09 10:40:58 +02:00
Rainer Gerhards
7e7e92be6e mmfields/milestone: fields properly extracted
but not yet stored in rsyslog dictionary
2013-06-07 18:02:34 +02:00
Rainer Gerhards
68a3e0b2f5 mmfields: created skeleton for new module; build system integration 2013-06-07 14:14:11 +02:00