-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logmsg: Do not use NULL template_options parameter for log_macro_expand.
In case of time-related macros, it uses the members of the LogTemplateOptions* structure, but it results in a NULL pointer dereference. Instead of spraying the log_macro_expand code with NULL checks, we pass an initialized options structure to the function, and wrap it in the log_macro_expand_simple function. Signed-off-by: Viktor Tusa <tusa@balabit.hu> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters