]> git.kaiwu.me - nginx.git/commit
Core: fixed segfault with null in wildcard hash names.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 11 Sep 2015 14:04:40 +0000 (17:04 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 11 Sep 2015 14:04:40 +0000 (17:04 +0300)
commit2c9691431229bfe33e81c5a03a70792548b28e22
tree557e6da9e3ef3bce3d90446f2b7633cc49557f21
parent7930a6c44279315140955fac230cf5305fc3c550
Core: fixed segfault with null in wildcard hash names.

A configuration like

    server { server_name .foo^@; }
    server { server_name .foo; }

resulted in a segmentation fault during construction of server names hash.

Reported by Markus Linnala.
Found with afl-fuzz.
src/core/ngx_hash.c