Files
Patrick Steinhardt 749374314d config_file: properly ignore includes without "path" value
In case a configuration includes a key "include.path=" without any
value, the generated configuration entry will have its value set to
`NULL`. This is unexpected by the logic handling includes, and as soon
as we try to calculate the included path we will unconditionally
dereference that `NULL` pointer and thus segfault.

Fix the issue by returning early in both `parse_include` and
`parse_conditional_include` in case where the `file` argument is `NULL`.
Add a test to avoid future regression.

The issue has been found by the oss-fuzz project, issue 10810.

(cherry picked from commit d06d4220ee)
2018-10-05 12:19:29 +02:00
..
2013-11-14 14:05:52 -08:00
2013-11-14 14:05:52 -08:00
2015-03-03 18:35:12 +01:00
2015-04-23 11:24:50 -04:00
2015-03-03 18:35:12 +01:00
2014-10-26 22:27:48 -04:00
2016-03-31 10:41:33 -04:00