]> granicus.if.org Git - libevent/commit
http: fix undefined-shift in EVUTIL_IS*_ helpers
authorAzat Khuzhin <azat@libevent.org>
Thu, 25 Jun 2020 05:45:34 +0000 (08:45 +0300)
committerAzat Khuzhin <azat@libevent.org>
Thu, 25 Jun 2020 06:51:20 +0000 (09:51 +0300)
commit37dbb3508099d49748453166c1ee9ef1603fcf3a
tree0aa793487a34e5aafd2b7aab61e731bcc6d6ee31
parent4528d8e98781be794cbce13394f8442dd466684b
http: fix undefined-shift in EVUTIL_IS*_ helpers

evutil.c:2559:1: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
    #0 0x4f2be0 in EVUTIL_ISXDIGIT_ libevent/evutil.c:2559:1
    #1 0x4bd689 in regname_ok libevent/http.c:4838:7
    #2 0x4bc16b in parse_authority libevent/http.c:4958:9
    #3 0x4bb8b5 in evhttp_uri_parse_with_flags libevent/http.c:5103:7
    #4 0x4bb762 in evhttp_uri_parse libevent/http.c:5050:9
    #5 0x4b8f41 in evhttp_parse_query_impl libevent/http.c:3505:9
    #6 0x4b8ed7 in evhttp_parse_query libevent/http.c:3569:9

Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23291
Report: https://oss-fuzz.com/testcase-detail/5670743106125824
evutil.c
test/regress_util.c