• Show log

    Commit

  • Hash : d06d4220
    Author : Patrick Steinhardt
    Date : 2018-10-05T10:56:02

    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.