• Show log

    Commit

  • Hash : 4545807d
    Author : Azat Khuzhin
    Date : 2016-12-19T10:22:51

    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