Edit

kc3-lang/libevent/include

Branch :

  • Show log

    Commit

  • Author : Azat Khuzhin
    Date : 2016-12-19 10:22:51
    Hash : 4545807d
    Message : Fix UB in evutil_date_rfc1123() As pointed in https://github.com/libevent/libevent/pull/417#issuecomment-267860738 "code is unsafe because in evutil_date_rfc1123() the pointer to the automatic variable struct tm cur is used outside the scope it defined." Checked with `clang -fsanitize=address -fsanitize-address-use-after-scope` and test that call evutil_date_rfc1123() with tm==NULL