]> git.ipfire.org Git - thirdparty/suricata.git/commit
conf/yaml: don't allow empty key values
authorJason Ish <ish@unx.ca>
Wed, 7 Feb 2018 21:11:54 +0000 (15:11 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 9 Feb 2018 14:32:05 +0000 (15:32 +0100)
commit8b74ac6ba00c40fd252698b6938ea5bcda39163b
tree2a528c836069cf07d7ead858d650c920981c7834
parent013c4e0aa04436727d8c8cc4292387af069eea52
conf/yaml: don't allow empty key values

When loading an empty file, libyaml will fire a single scalar
event causing us to create a key that contains an empty string.
We're not interested in this, so skip an empty scalar value
when expecting a key.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/2418
src/conf-yaml-loader.c