Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.1.12 stable pull #1045

Merged
merged 122 commits into from
Jul 5, 2020
Merged

Commits on Jun 28, 2020

  1. Add Uninstall.cmake.in into dist archive

    Fixes: libevent#863
    (cherry picked from commit f05ba67)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    877f235 View commit details
    Browse the repository at this point in the history
  2. Change the minimum version of automake to 1.13 and autoconf to 2.67

    When I run make check via automake with a version of 1.12.6 or lower, I got this error:
    
        /bin/sh: line 9: ./test_runner_epoll: No such file or directory
        FAIL: test_runner_epoll
        /bin/sh: line 9: ./test_runner_select: No such file or directory
        FAIL: test_runner_select
        /bin/sh: line 9: ./test_runner_kqueue: No such file or directory
        FAIL: test_runner_kqueue
        /bin/sh: line 9: ./test_runner_evport: No such file or directory
        FAIL: test_runner_evport
        /bin/sh: line 9: ./test_runner_devpoll: No such file or directory
        FAIL: test_runner_devpoll
        /bin/sh: line 9: ./test_runner_poll: No such file or directory
        FAIL: test_runner_poll
        /bin/sh: line 9: ./test_runner_win32: No such file or directory
        FAIL: test_runner_win32
        /bin/sh: line 9: ./test_runner_timerfd: No such file or directory
        FAIL: test_runner_timerfd
        /bin/sh: line 9: ./test_runner_changelist: No such file or directory
        FAIL: test_runner_changelist
        /bin/sh: line 9: ./test_runner_timerfd_changelist: No such file or directory
        FAIL: test_runner_timerfd_changelist
    
    Open the Makefile generated by command ./autogen.sh && ./configure
    I can see the errors are caused by this line:
    
        if $(TESTS_ENVIRONMENT) $${dir}$$tst $(AM_TESTS_FD_REDIRECT); then
    
    $${dir}$$tst will expand to ./test_runner_epoll, but test_runner_epoll is only a target in test/include.am,
    not a file, so it print:
    
        /bin/sh: line 9: ./test_runner_epoll: No such file or directory.
    
    It seems like a bug in automake 1.12.6.
    The errors will disappear if I simply upgrade automake to 1.13, and upgrade autoconf to 2.65
    (2.65 is the lowest version dependent by automake-1.13).
    
    When I build with automake-1.13 and autoconf-2.66, I got another error:
    
        configure.ac:667: error: AC_CHECK_SIZEOF: requires literal arguments
    
    The code in configure.ac line 667 is :
    
        AC_CHECK_SIZEOF(void *)
    
    It is a bug in autoconf-2.66 :
    http://gnu-autoconf.7623.n7.nabble.com/AC-CHECK-SIZEOF-int-is-error-in-autoconf-2-66-td13537.html
    
    Finally, everything works fine when using automake-1.13 and autoconf-2.67.
    Refs: libevent#858
    
    (cherry picked from commit 3f09e92)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    fdb8fb6 View commit details
    Browse the repository at this point in the history
  3. sample/signal-test: add NULL checks

    Fixes: libevent#865
    (cherry picked from commit 101fbe3)
    dota17 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    317b026 View commit details
    Browse the repository at this point in the history
  4. Fix typos in comments (sample/test/event-internal.h)

    (cherry picked from commit 9c151f3)
    dota17 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    ec52e6a View commit details
    Browse the repository at this point in the history
  5. sample/signal-test: fix use of uninitialized variable

    signal_int is uninitialized in the !base error path.
    
    Signed-off-by: David Disseldorp <ddiss@samba.org>
    (cherry picked from commit a027629)
    ddiss authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    f9d7ac0 View commit details
    Browse the repository at this point in the history
  6. sample/http-server: fix parameter parsing

    argv[1] is currently unconditionally passed as the docroot to
    send_document_cb(). This is broken if any optional parameters are
    provided, such as -p <port>.
    
    Signed-off-by: David Disseldorp <ddiss@samba.org>
    (cherry picked from commit 7d71214)
    ddiss authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    4a6f1cc View commit details
    Browse the repository at this point in the history
  7. test: introduce TT_ENABLE_DEBUG_MODE flag

    (cherry picked from commit 6186d31)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    0126814 View commit details
    Browse the repository at this point in the history
  8. test: prevent duplicate event_enable_debug_mode() for TT_ENABLE_DEBUG…

    …_MODE
    
    (cherry picked from commit 70daa93)
    cybojanek authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    23af76d View commit details
    Browse the repository at this point in the history
  9. Fix memory corruption in EV_CLOSURE_EVENT_FINALIZE with debug enabled

    Call event_debug_note_teardown_ before evcb_evfinalize to avoid possible
    UAF (if finalizer free's event).
    
    (cherry picked from commit 445027a)
    cybojanek authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8ccd8f5 View commit details
    Browse the repository at this point in the history
  10. cmake: attach doxygen target into all target

    v2: Disable non-html generator for doxygen by default
    v3: convert cmake option to doxygen config
    (cherry picked from commit 1d1c190)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    7a85300 View commit details
    Browse the repository at this point in the history
  11. autotools: attach doxygen target into all target

    v2: disable man pages by default
    (cherry picked from commit f9c6a14)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    5d1e857 View commit details
    Browse the repository at this point in the history
  12. eliminate some C4267 warnings in Windows

    (cherry picked from commit 6f97026)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9e468c7 View commit details
    Browse the repository at this point in the history
  13. Revert "Warn if forked from the event loop during event_reinit()"

    Thinking about this more and realizing that this was a mistake, so
    should be reverted.
    
    In a nut shell I guess most of the apps calls event_reinit() from the
    loop (see [1] for example), and this should be totally fine (the bit
    with the signals [2] handled in event_reinit() gracefully)
    
      [1]: https://archives.seul.org/libevent/users/Aug-2019/msg00009.html
      [2]: libevent#833 (comment)
    
    This reverts commit 497ef90.
    
    Reported-by: mikulas@twibright.com
    Backport-to: 2.1
    (cherry picked from commit ddacaef)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    71f5c0d View commit details
    Browse the repository at this point in the history
  14. Upgrade autoconf (after upgrading minimum required to 2.67)

    - AC_PROG_SED
    - AC_USE_SYSTEM_EXTENSIONS
    - AC_TRY_COMPILE -> AC_COMPILE_IFELSE
    - AC_TRY_RUN -> AC_RUN_IFELSE
    ...
    
    Also use:
    - AC_CONFIG_AUX_DIR
    
    Refs: libevent#870
    Fixes: 3f09e92 ("Change the minimum version of automake to 1.13 and autoconf to 2.67")
    (cherry picked from commit 13b8fc3)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    45da7d9 View commit details
    Browse the repository at this point in the history
  15. arc4random: replace sysctl() with getrandom (on linux)

    Since sysctl() is deprecated for a long-long time, according to
    sysctl(2):
    
        Since Linux 2.6.24, uses of this system call result in warnings in the kernel log.
    
    Fixes: libevent#890
    Suggested-by: Pierce Lopez
    (cherry picked from commit 86f55b0)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    66ec78f View commit details
    Browse the repository at this point in the history
  16. cmake: fix getrandom() detection

    Fixes: 86f55b0 ("arc4random: replace sysctl() with getrandom (on linux)")
    (cherry picked from commit 194a5d8)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e0e5f3b View commit details
    Browse the repository at this point in the history
  17. Fix checking return value of the evdns_base_resolv_conf_parse()

    Reported-by: Maxim Gorbachyov <maxim.gorbachyov@gmail.com>
    (cherry picked from commit c3f3534)
    azat committed Jun 28, 2020
    4 Configuration menu
    Copy the full SHA
    fc51bf2 View commit details
    Browse the repository at this point in the history
  18. https-client: load certificates from the system cert store on Windows

    (cherry picked from commit 572a565)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e947864 View commit details
    Browse the repository at this point in the history
  19. http: rename bind_socket_ai() to create_bind_socket_nonblock()

    (cherry picked from commit 0cd536b)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    c169bdc View commit details
    Browse the repository at this point in the history
  20. evutil_time: detect and use _gmtime64_s()/_gmtime64()

    (cherry picked from commit 148d12a)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    f4a6152 View commit details
    Browse the repository at this point in the history
  21. evbuffer_add_file: fix freeing of segment in the error path

    if evbuffer_add_file_segment() fails it returns -1, so we should call
    evbuffer_file_segment_free() only on error, and this -1 not 0.
    
    Fixes: 6a81b1f ("Avoid double-free on error in evbuffer_add_file. Found by coverity.")
    Backport-to: 2.1
    (cherry picked from commit 4727150)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    5f017bd View commit details
    Browse the repository at this point in the history
  22. Merge branch 'upstream/pr/899' (evbuffer_freeze testcase enhancements)

    * upstream/pr/899:
      improve the description of parameter to evbuffer_read()
      regress_buffer: improve testcase for evbuffer_freeze()
    
    (cherry picked from commit a977d69)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a4f0387 View commit details
    Browse the repository at this point in the history
  23. tinytest: support timeout on Windows

    (cherry picked from commit 8d5c565)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    794e8f7 View commit details
    Browse the repository at this point in the history
  24. Avoid transforming base C_FLAGS set deliberately

    The CMAKE_C_FLAGS_DEBUG, CMAKE_C_FLAGS_RELEASE, CMAKE_C_FLAGS_MINSIZEREL
    and CMAKE_C_FLAGS_RELWITHDEBINFO options are correctly and deliberately
    toggled to use the libcmt (/MT) flag options in place of the usual
    msvcrt (/MD) options, but this isn't necessarily desired by the user.
    The default choice can be overriden with the EVENT__MSVC_STATIC_RUNTIME
    cmake option.
    
    However, the /MD flag that is the choice of CMake only enters into
    play for the four types of builds above. If the user introduces another
    CMAKE_BUILD_TYPE, the base CMAKE_C_FLAGS must not be manipulated, as
    that value (and the CMAKE_C_FLAGS_{custom} value) have been explicitly
    chosen by the user/developer deploying this library, and the mismatch
    between these flags in different dependencies results in link errors.
    
    The CMake build schema itself doesn't place an /MD flag in CMAKE_BUILD_TYPE
    so any /M compile option in that variable needs to be retained.
    
    Signed-off-by: William Rowe <wrowe@pivotal.io>
    Signed-off-by: Yechiel Kalmenson <ykalmenson@pivotal.io>
    (cherry picked from commit af4b07a)
    wrowe authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    50b9be0 View commit details
    Browse the repository at this point in the history
  25. Fix compat with NetBSD >= 10

    kevent::udata was switched from intptr_t to void*.
    
    Handle both cases with the GCC extension typeof().
    
    (cherry picked from commit 72e6eff)
    krytarowski authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    5febb4e View commit details
    Browse the repository at this point in the history
  26. sample/https-client: link crypt32 explicitly when build with mingw-w64

    (cherry picked from commit 78b5bca)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e35e02e View commit details
    Browse the repository at this point in the history
  27. Do not use sysctl.h on linux (it had been deprecated)

    It had been deprecated for a long time (AFAIK), but since
    glibc-2.29.9000-309-g744e829637 it produces a #warning
    
    (cherry picked from commit b9b9f19)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    d2871a3 View commit details
    Browse the repository at this point in the history
  28. append to CMAKE_MODULE_PATH

    Don't override any -DCMAKE_MODULE_PATH= passed from CLI
    to eg. test custom Platform/ support.
    
    (cherry picked from commit 84affc1)
    mdavidsaver authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    87c6f73 View commit details
    Browse the repository at this point in the history
  29. cmake: eliminate duplicate installation of public headers

    (cherry picked from commit 5fe83d7)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a9d1121 View commit details
    Browse the repository at this point in the history
  30. autotools: fails build when need but can not find openssl

    (cherry picked from commit 53b3be4)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    93174bb View commit details
    Browse the repository at this point in the history
  31. Relax bufferevent_connect_hostname_emfile

    Do not do any assumptions on the error for the EMFILE from
    getaddrinfo(), expect just any error.
    
    Fixes: libevent#924
    (cherry picked from commit 4436287)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    ca92a75 View commit details
    Browse the repository at this point in the history
  32. Parse IPv6 scope IDs.

    (cherry picked from commit 9fecb59)
    PhilipHomburg authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    f602211 View commit details
    Browse the repository at this point in the history
  33. Link with iphlpapi only on windows

    Fixes: 9fecb59 ("Parse IPv6 scope IDs.")
    Refs: libevent#923
    (cherry picked from commit 1495f8b)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    976f7d3 View commit details
    Browse the repository at this point in the history
  34. cmake: improve package config file

    (cherry picked from commit dc4be86)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1c04761 View commit details
    Browse the repository at this point in the history
  35. cmake: test for find_package()

    (cherry picked from commit cd15112)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    baec84f View commit details
    Browse the repository at this point in the history
  36. mailmap: add name/email aliases for yuangongji (name and email)

    Before:
      $ git log --format='%aE %aN' --author=yuangongji | sort | uniq -c
           30 82787816@qq.com yuangongji
            1 82787816@qq.com yuangongji (A)
    
    After:
      $ git log --format='%aE %aN' --author=yuangongji | sort | uniq -c
           34 yuangongji@foxmail.com yuangongji
    (cherry picked from commit 026590f)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    ffc528e View commit details
    Browse the repository at this point in the history
  37. test-ratelim: calculate timers bias (for slow CPUs) to avoid false-po…

    …sitive
    
    This can be/should be done for regression tests too.
    
    Refs: https://ci.appveyor.com/project/libevent/libevent/builds/28916689/job/kg621aa194a0qbym
    Refs: libevent#917 (comment)
    v2: EVENT_BASE_FLAG_PRECISE_TIMER
    (cherry picked from commit 8a34869)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8ad26d0 View commit details
    Browse the repository at this point in the history
  38. cmake: use CMAKE_LIBRARY_OUTPUT_DIRECTORY for the final shared librar…

    …y symlink
    
    Fixes: 669a53f ("cmake: set library names to be the same as with autotools")
    (cherry picked from commit b9f442e)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    47eb8c1 View commit details
    Browse the repository at this point in the history
  39. cmake: set CMAKE_{RUNTIME,LIBRARY,ARCHIVE}_OUTPUT_DIRECTORY they are …

    …not defined
    
    This will allow overriding them in parent cmake rules, i.e. if libevent
    is used via add_subdirectory().
    
    Closes: libevent#931
    (cherry picked from commit 8f13c17)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    2db851a View commit details
    Browse the repository at this point in the history
  40. Initialize variable to 0 replace use memset function in sample/hello-…

    …world.c
    
    (cherry picked from commit 1edb6f6)
    iysheng authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    d9da412 View commit details
    Browse the repository at this point in the history
  41. evutil_time: Implements usleep() using wait funtion on Windows

    (cherry picked from commit 6412f34)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    d42240d View commit details
    Browse the repository at this point in the history
  42. Fix compilation without OPENSSL_API_COMPAT

    Use the following for openssl 1.1+:
    - X509_getm_notBefore over X509_get_notBefore
    - X509_getm_notAfter  over X509_get_notAfter
    - use OPENSSL_VERSION_NUMBER over SSLeay()
    - add missing headers
    
    Refs: openssl/openssl@0b7347effee5
    (cherry picked from commit 08981f8)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    921bdcd View commit details
    Browse the repository at this point in the history
  43. Added uninstall target check to cmakelists

    (cherry picked from commit f0e79ba)
    Dimo Markov authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    3f1fb1f View commit details
    Browse the repository at this point in the history
  44. http: do not assume body for CONNECT

    (cherry picked from commit 998e683)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1b42270 View commit details
    Browse the repository at this point in the history
  45. Merge branch 'http-connect'

    After this patchset http-connect works with pproxy [1]:
    
        $ pproxy -l http://:8000/ -vvv &
        $ http-connect //127.1:8000 http://kernel.org:80/
    
      [1]: https://pypi.org/project/pproxy/
    
    * http-connect:
      http-connect: do not check connection on GET cb
      http-connect: set Host header (for CONNECT and GET) (like curl)
      http-connect: cleanup and helpers
      http: do not close connection for CONNECT
      http: do not assume body for CONNECT
    
    Fixes: libevent#946
    (cherry picked from commit 462f2e9)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e242422 View commit details
    Browse the repository at this point in the history
  46. cmake: run regress test quietly like autotools (makes CI logs cleaner)

    (cherry picked from commit fa33819)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    70ac214 View commit details
    Browse the repository at this point in the history
  47. cmake: do not print used method (EVENT_SHOW_METHOD) while running tests

    autotools don't, plus this will make CI logs cleaner
    
    (cherry picked from commit f8a6f12)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    677378e View commit details
    Browse the repository at this point in the history
  48. Merge branch 'osx-clock'

    Moves the thread into real-time scheduling class, as recommended in [1], it
    fixes the separate test provided by @ygj6 [2] everywhere (github actions,
    travis-ci, appveyor) under osx.
    
      [1]: https://developer.apple.com/library/archive/technotes/tn2169/_index.html
      [2]: azat-archive/osx-timers@dde1a6e
    
    Although even after this changes the following time-related tests failed
    on travis-ci:
    - no_events
    - del_wait
    
    But anyway I guess libevent#940 can be closed, since this fixes the issue in common.
    
    * osx-clock:
      test: Use THREAD_* wrappers in del_notify/del_wait
      test: move threads created with THREAD_START() to realtime scheduling class too
      test: put thread into real time scheduling class on osx for better latencies
    
    Closes: libevent#940
    (cherry picked from commit a6f81aa)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e85afbe View commit details
    Browse the repository at this point in the history
  49. test: use THREAD_* wrappers over pthread* in del_notify

    (cherry picked from commit 391003e)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8991346 View commit details
    Browse the repository at this point in the history
  50. test: fix compilation under win32 (rearrange thread_setup() code)

    (cherry picked from commit 34d51e1)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    265cbe1 View commit details
    Browse the repository at this point in the history
  51. test: fix dst thread in move_pthread_to_realtime_scheduling_class (osx)

    Fixes the following tests on osx:
    - del_wait
    - no_events
    
    Refs: libevent#940
    (cherry picked from commit 10504fc)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    d5d18a5 View commit details
    Browse the repository at this point in the history
  52. test: fix bufferevent/bufferevent_connect_fail_eventcb* under osx/fre…

    …ebsd
    
    For OSX the socket should be closed, otherwise the "connection refused"
    will not be triggered.
    
    And freebsd can return error from the connect().
    
    (cherry picked from commit 30fe125)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1121ebe View commit details
    Browse the repository at this point in the history
  53. test: fix compilation without thread support (EVENT__DISABLE_THREAD_S…

    …UPPORT=ON)
    
    (cherry picked from commit d0adbc0)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    5a400c1 View commit details
    Browse the repository at this point in the history
  54. test: move thread into realtime class even on EVENT__DISABLE_THREAD_S…

    …UPPORT
    
    (cherry picked from commit ca2b72c)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    0ef87f5 View commit details
    Browse the repository at this point in the history
  55. Do not use shared global structures on CYGWIN

    Fixes: libevent#950
    (cherry picked from commit 2c47305)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8a9b565 View commit details
    Browse the repository at this point in the history
  56. test-ratelim: add missing free

    (cherry picked from commit 5fbe631)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9e993c3 View commit details
    Browse the repository at this point in the history
  57. event_base_once: fix potential null pointer threat

    supposing if base is null, EVBASE_ACQUIRE_LOCK and EVBASE_RELEASE_LOCK
    would get a coredump, so we add a guard for protection.
    
    Signed-off-by: chenguolong <cgl.chenguolong@huawei.com>
    (cherry picked from commit 968bbd5)
    chenguolong authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    2e9ceb1 View commit details
    Browse the repository at this point in the history
  58. evdns: fix a crash when evdns_base with waiting requests is freed

    Fix undefined behaviour and application crash that might take
    place in some rare cases after calling evdns_base_free when
    there are requests in the waiting queue.
    
    Current cleanup procedure in evdns_base_free_and_unlock
    function includes 2 steps:
    1. Finish all inflight requests.
    2. Finish all waiting requests.
    During the first step we iterate over each list in req_heads
    structure and finish all requests in these lists. With current
    logic finishing an inflight request (function request_finished)
    removes it from the inflight requests container and forces
    a wating connection to be sent (by calling
    evdns_requests_pump_waiting_queue). When these new requests are
    sent it is possible that they will be inserted to the list in
    req_heads that we've already cleaned.
    So in some cases container of the inflight requests is not empty
    after this procedure and some requests are not finished and
    deleted. When timeouts for these requests expire
    evdns_request_timeout_callback is called but corresponding
    evdns_base has been already deleted which causes undefined
    behaviour and possible applicaton crash.
    
    It is interesting to note that in old versions of libevent such
    situation was not possible. This bug was introduced by the commit
    14f84bb. Before this commit
    nameservers were deleted before finishing the requests. Therefore
    it was not possible that requests from the waiting queue be sent
    while we finish the inflight requests.
    
    (cherry picked from commit 4da9f87)
    ayuseleznev authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    6f8e0e9 View commit details
    Browse the repository at this point in the history
  59. increase segment refcnt only if evbuffer_add_file_segment() succeeds

    (cherry picked from commit 114b383)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    30662a3 View commit details
    Browse the repository at this point in the history
  60. test-time: enable debug mode if EVENT_DEBUG_LOGGING_ALL env set

    (cherry picked from commit a11edbf)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    29e2c7f View commit details
    Browse the repository at this point in the history
  61. test-time: do not use deprecated API

    - event_init() -> event_base_new()
    - event_set() -> event_new()
    - check return value of event_base_dispatch()
    - use EXIT_SUCCESS/EXIT_FAILURE
    
    (cherry picked from commit 4e5a41c)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    e41a196 View commit details
    Browse the repository at this point in the history
  62. autoconf: fix getaddrinfo checking errors on mingw

    `AC_CHECK_FUNCS` can not properly check `getaddrinfo` because this
    function requires some special headers on mingw.
    Using `AC_CHECK_DECL` can effectively solve this issue.
    
    Same for
    - getnameinfo
    - getprotobynumber
    - getservbyname
    - inet_ntop
    - inet_pton
    
    (cherry picked from commit 6d54be2)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    b9bf7fa View commit details
    Browse the repository at this point in the history
  63. cmake: remove CheckFunctionExistsEx

    `CheckFunctionExistsEx` is copied from the cmake modules before
    3.1.2, which is the minimum required version of libevent.
    The internal module `CheckFunctionExists`of cmake can completely
    replace it.
    
    (cherry picked from commit 61c5c19)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8838486 View commit details
    Browse the repository at this point in the history
  64. cmake: fix getaddrinfo checking error

    Using `CheckFunctionExists` on Windows to check `getaddrinfo`
    will get `not found`, but it actually exists. Using `CheckSymbolExists`
    with headers will get correct results. Other functions such as
    `getnameinfo`,`inet_ntop`,etc. have the same issue.
    
    (cherry picked from commit 503ba1d)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    dea51c2 View commit details
    Browse the repository at this point in the history
  65. LibeventConfig.cmake: restore CMAKE_FIND_LIBRARY_SUFFIXES and LIBEVEN…

    …T_STATIC_LINK default
    
    The current cmake/LibeventConfig.cmake.in has a few problems and I'm not
    sure how cleanly developed it is. It seems rater complex for the little
    things I would assume it needs to do.
    
    I found two problems that are fixed in this PR:
    
    - If the downstream user does not explicitly set LIBEVENT_STATIC_LINK
      before calling find_package(libevent) then they will not be able to
      detect the static library, even if its the only one that exists. Since
      this may be rather strict, I've changed the behavior so that
      LIBEVENT_STATIC_LINK can be set to ON or OFF, but if unset, it defaults
      to whatever configuration libevent was built as.
    
    - The other problem is a bug. The package configuration needs to unset
      CMAKE_FIND_LIBRARY_SUFFIXES after use, otherwise all packages that are
      detected after libevent will be "infected" by this setting. This was a
      significant problem for us, and is very hard to detect in downstream
      project, because the order of dependencies will lead to different search
      results.
    
    (cherry picked from commit 1675a55)
    emmenlau authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    640f9cf View commit details
    Browse the repository at this point in the history
  66. cmake: replace CheckFunctionExists with CheckSymbolExists

    Checking functions with `CheckFunctionExists` may
    get wrong results, we should replace it with
    `CheckSymbolExists`, which is recommended by the cmake
    official documentation.
    Before using `CheckSymbolExists`, we use
    `CheckIncludeFiles` to check header files and save the
    available header files in a variable that guarantees
    `CheckSymbolExists` and `CheckTypeSize` to work correctly.
    This approach is modeled after the cmake scripts of `curl`.
    
    The following functions or files were not found before
    modification, they can now be found:
    - msys2 + mingw-8.1.0 on Windows10 or mingw-7.3.0 on Ubuntu-18.04
    timerclear
    timercmp
    timerisset
    
    - windows10
    getaddrinfo
    getnameinfo
    getprotobynumber
    getservbyname
    putenv
    strtoll
    timerclear
    timercmp
    timerisset
    
    - ubuntu-18.04
    sys/sysctl.h
    timeradd
    timerclear
    timercmp
    timerisset
    
    - MacOS 10.13
    sys/random.h
    timeradd
    timerclear
    timercmp
    timerisset
    
    (cherry picked from commit 41d1d75)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    13af9d2 View commit details
    Browse the repository at this point in the history
  67. Merge branch 'event_rpcgen.py-cleanup'

    * event_rpcgen.py-cleanup:
      event_rpcgen.py: fix arguments-differ
      event_rpcgen.py: fix attribute-defined-outside-init
      event_rpcgen: suppress some warnings to make pylint clean
      Don't accumulate arguments in `Entry.GetTranslation`
      Fix improper string concatenations in lists
      Fix warnings regarding unused variables
      Don't override the `type` built-in
      Call `super` to call methods from the parent class
      Address `no-self-use` issues reported by pylint
      Run the code through the black formatter
      Reformat strings to template
      Add `argparse` support
      Precompile regular expressions
      Use bools instead of ints values where possible
      Rename all global variables to match the PEP8 spec
      Handle file pointers with context suite patterns
      Iterate over `tokens` with a for instead of while
      Fix indentation for `RpcGenError`
      Don't override `file` built-in
      Resolve variable name issues per PEP8
      Sort imports per PEP8
    
    (cherry picked from commit dd02ad9)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    f0ded5f View commit details
    Browse the repository at this point in the history
  68. cmake: missing test-closed binary

    (cherry picked from commit 5786290)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9ed49f2 View commit details
    Browse the repository at this point in the history
  69. bench: Allow backend method selection

    -l         list available methods
    -m <name>  use method
    
    (cherry picked from commit 5caffa7)
    nigriMSFT authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1fce771 View commit details
    Browse the repository at this point in the history
  70. evutil_time: improve evutil_gettimeofday on Windows

    If present, use GetSystemTimePreciseAsFileTime instead of
    GetSystemTimeAsFileTime. Available since Windows 8.
    
    (cherry picked from commit f0b3160)
    nigriMSFT authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a821914 View commit details
    Browse the repository at this point in the history
  71. cmake: set a default value for LIBEVENT_STATIC_LINK

    (cherry picked from commit 86eafc0)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a6974d1 View commit details
    Browse the repository at this point in the history
  72. bufferevent: allow setting priority on socket and openssl type

    (cherry picked from commit bdc5200)
    nicboul authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    4dd3acd View commit details
    Browse the repository at this point in the history
  73. Merge branch 'EV_CLOSED-and-EV_ET-fixes'

    * EV_CLOSED-and-EV_ET-fixes:
      Avoid triggering wrong events with EV_ET set
      epoll: handle EV_ET for EV_CLOSED too
      test: cover EV_CLOSED with lots of possible scenarious
      test: rename simpleclose to simpleclose_rw (since it works via write/read)
    
    (cherry picked from commit c10cde4)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    db2efdf View commit details
    Browse the repository at this point in the history
  74. Fix EV_CLOSED detection/reporting (epoll only)

    - EV_CLOSED is EPOLLRDHUP in epoll
    - EPOLLRDHUP reported w/o EPOLLHUP if the socket closed with shutdown(SHUT_WR)
    - EPOLLRDHUP reported w/  EPOLLHUP if the socket closed with close()
      so in this case epoll backend will detect this event as error
      (EV_READ|EV_WRITE), since the epoll_ctl() will return EPOLLRDHUP with
      EPOLLHUP set, but this is not correct, let's fix this.
    
    Fixes: libevent#984
    (cherry picked from commit 972b456)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1df324d View commit details
    Browse the repository at this point in the history
  75. Support EV_CLOSED on linux for poll(2)

    Refs: libevent#984
    (cherry picked from commit 4c13afa)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    2530e7c View commit details
    Browse the repository at this point in the history
  76. There is typo in GetAdaptersAddresses windows library. It should be i…

    …phlpapi.dll
    
    (cherry picked from commit 61fc2bf)
    Aleksandr-Melnikov authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    891adda View commit details
    Browse the repository at this point in the history
  77. Pass --quiet to the event_rcpgen.py (autotools already does this)

    (cherry picked from commit 7a46526)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9ea60ab View commit details
    Browse the repository at this point in the history
  78. Update list of cmake files for autotools dist archive

    Fixes: libevent#976
    (cherry picked from commit f3bc532)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    2016f01 View commit details
    Browse the repository at this point in the history
  79. Add API/ABI checker (using LVC)

    v2 (by azat):
    - drop package installations
    - use local .abi-check over $HOME/abi-check for build dir
    - drop regex check, simply use default values (too complex otherwise)
    - use sub-shell to avoid cd back
    - add missing quotes
    - make the style uniq across the whole file (no tabs for indent, copy-paste?)
    - drop `set -x`, use `bash -x abi-check.sh` over
    - drop EVENT_ABI_CHECK
    - use /usr/bin/env bash as shebang
    - use `find | xargs` over `cp $(grep -v)`
    - adjust markdown syntax in abi-check/README.md
    - adjust link to the publicly available documentation
    
    v3 (by azat):
    - docker image
    - git check-ignore
    - make -j8
    - allow to change defaults
    
    Refs: libevent#887
    (cherry picked from commit 735c891)
    yuangongji authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    709210d View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    2af1f6c View commit details
    Browse the repository at this point in the history
  81. test: Fix test_simpleclose for Windows platform

    Replace close with evutil_closesocket
    Caught with PR libevent#1006
    
    (cherry picked from commit 06a1192)
    nigriMSFT authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    141e37c View commit details
    Browse the repository at this point in the history
  82. evdns: Add additional validation for values of dns options

    (cherry picked from commit 8fe35c7)
    ayuseleznev authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    c297245 View commit details
    Browse the repository at this point in the history
  83. test: fix http/autofree_connection

    Refs: libevent#182
    (cherry picked from commit 1cc94fe)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    ab13087 View commit details
    Browse the repository at this point in the history
  84. test: cleanup http/autofree_connection

    (cherry picked from commit 70f6919)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    8dc6468 View commit details
    Browse the repository at this point in the history
  85. http: fix EVHTTP_CON_AUTOFREE in case of timeout (and some else)

    Refs: libevent#182
    (cherry picked from commit eee26de)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    1be2593 View commit details
    Browse the repository at this point in the history
  86. test: http/autofree_connection cleanup

    (cherry picked from commit e8c8951)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    65a002a View commit details
    Browse the repository at this point in the history
  87. variable redefinition in win32_dispatch

    (cherry picked from commit f10aaea)
    mayerui authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    0970e25 View commit details
    Browse the repository at this point in the history
  88. Fix clang-format-diff usage

    "--style" is invalid:
    
    $ ./checkpatch.sh -r HEAD
    usage: clang-format-diff [-h] [-i] [-p NUM] [-regex PATTERN] [-iregex PATTERN]
                             [-sort-includes] [-v] [-style STYLE] [-binary BINARY]
    clang-format-diff: error: unrecognized arguments: --style={ Language:... }
    
    (cherry picked from commit 866fbb5)
    wataash authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    b0e9577 View commit details
    Browse the repository at this point in the history
  89. checkpatch.sh: fix usage

    Refs: libevent#1029
    (cherry picked from commit 8209a62)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9c2b49c View commit details
    Browse the repository at this point in the history
  90. checkpatch.sh: fix clang-format-diff usage

    - strip 1 path component
    - it does not accept file name anymore, only stdin
    
    Refs: libevent#1029
    (cherry picked from commit 89d313b)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    da11fcc View commit details
    Browse the repository at this point in the history
  91. remove FindGit.cmake, improve git describe command

    (cherry picked from commit a9aa2b3)
    ygj6 authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    9a94cd9 View commit details
    Browse the repository at this point in the history
  92. test/regress_testutils: use inet_addr()

    (cherry picked from commit 8b5a4d6)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    fb5fa12 View commit details
    Browse the repository at this point in the history
  93. cmake: avoid problems from use of CMAKE_USE_PTHREADS_INIT

    In some CMake integrations, portions of the toolchain may end up
    defining CMAKE_USE_PTHREADS_INIT even when EVENT__DISABLE_THREAD_SUPPORT
    is set for libevent.  Modify the build to not rely on this side effect
    of find_package(Threads, ...) [which could be done elsewhere] but instead
    to use EVENT__HAVE_PTHREADS which is defined only on the desired codepath.
    
    Without this change, affected builds fail as a result of event_pthreads source
    files being built but with build defines which cause the build to fail.
    
    Signed-off-by: Paul Osborne <paul.osborne@smartthings.com>
    (cherry picked from commit 26d5ff4)
    posborne authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a62ec76 View commit details
    Browse the repository at this point in the history
  94. Check error code of evhttp_add_header_internal() in evhttp_parse_quer…

    …y_impl()
    
    (cherry picked from commit 4528d8e)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    97e28f0 View commit details
    Browse the repository at this point in the history
  95. 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
        libevent#3 0x4bb8b5 in evhttp_uri_parse_with_flags libevent/http.c:5103:7
        libevent#4 0x4bb762 in evhttp_uri_parse libevent/http.c:5050:9
        libevent#5 0x4b8f41 in evhttp_parse_query_impl libevent/http.c:3505:9
        libevent#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
    (cherry picked from commit 37dbb35)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    6b8d02a View commit details
    Browse the repository at this point in the history
  96. test: do not pass NULL to memcmp() in evbuffer_datacmp() helper

    Fixes:
      runtime error: null pointer passed as argument 2, which is declared to never be null
    (cherry picked from commit 6f152be)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    a91abd0 View commit details
    Browse the repository at this point in the history
  97. buffer: do not pass NULL to memcpy() from evbuffer_pullup()

    UBSAN reports:
    
      evbuffer/remove_buffer_with_empty3: ../buffer.c:1443:3: runtime error: null pointer passed as argument 2, which is declared to never be null
          #0 0x7ffff6cd0410 in evbuffer_pullup ../buffer.c:1443
          #1 0x5555556d68b9 in test_evbuffer_remove_buffer_with_empty3 ../test/regress_buffer.c:408
          #2 0x5555557b95ee in testcase_run_bare_ ../test/tinytest.c:173
          libevent#3 0x5555557ba048 in testcase_run_one ../test/tinytest.c:333
          libevent#4 0x5555557bc0f8 in tinytest_main ../test/tinytest.c:527
          libevent#5 0x555555787702 in main ../test/regress_main.c:528
          libevent#6 0x7ffff606c001 in __libc_start_main (/usr/lib/libc.so.6+0x27001)
          libevent#7 0x55555569436d in _start (/src/le/libevent/.cmake-debug/bin/regress+0x14036d)
    
    (cherry picked from commit a0c642a)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    5b06304 View commit details
    Browse the repository at this point in the history
  98. Make all classes Entry, Struct, etc) new-style classes

    This allows the object methods to be properly inherited and called via
    `super(..)`, addressing breakage with python 2.x, introduced in
    cfcc093.
    
    Fixes libevent#1042.
    
    Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
    (cherry picked from commit 46c9ead)
    ngie-eign authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    48e0488 View commit details
    Browse the repository at this point in the history
  99. test: detect test failures if atexit handler calls _exit(!0) (sanitiz…

    …ers)
    
    tinytest uses another way of detecting test failures, it uses pipe
    between child and parent, and if the test function in child returns OK
    it writes OK flag into pipe, and reads it in parent.
    
    However sanitizers uses atexit handlers to detect leaks, and this will
    not detect failures in case of exit() will be called from the atexit
    handlers, fix this by checking status after waitpid().
    
    (cherry picked from commit 6754740)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    19a68bd View commit details
    Browse the repository at this point in the history
  100. test: disable bufferevent/bufferevent_pair_release_lock under ASAN (t…

    …oo tricky)
    
    And cannot be suppressed with suppressions due to setup routines.
    
    (cherry picked from commit 3b13a64)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    66341e8 View commit details
    Browse the repository at this point in the history
  101. test: "fix" (with a quirk) leak in ssl/bufferevent_wm (w/o defer call…

    …backs)
    
    (cherry picked from commit cdbb237)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    3c2c856 View commit details
    Browse the repository at this point in the history
  102. test: fix memory leaks for https (add BEV_OPT_CLOSE_ON_FREE)

    - http/https_filter_basic
    - http/https_filter_chunk_out
    
    (cherry picked from commit ec94a6b)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    ccd6724 View commit details
    Browse the repository at this point in the history
  103. build: remove duplicate -Wredundant-decls

    (cherry picked from commit ff4ec5f)
    fanquake authored and azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    cb4b873 View commit details
    Browse the repository at this point in the history
  104. test: add getaddrinfo(AI_ADDRCONFIG) test (off by default)

    (cherry picked from commit 0ac3cfc)
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    4d3ff29 View commit details
    Browse the repository at this point in the history
  105. Backport github actions to 2.1

    With some modifications:
    - drop coverage
    - drop doxygen
    - do not deploy ABI check, only artifacts
    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    be3acd7 View commit details
    Browse the repository at this point in the history
  106. Update AUTHORS for 2.1.12

    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    742bb5f View commit details
    Browse the repository at this point in the history
  107. Bump ChangeLog for 2.1.12

    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    65539db View commit details
    Browse the repository at this point in the history
  108. Purge appveyor config

    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    30bb66d View commit details
    Browse the repository at this point in the history
  109. Purge travis-ci config

    azat committed Jun 28, 2020
    Configuration menu
    Copy the full SHA
    afecaeb View commit details
    Browse the repository at this point in the history
  110. Configuration menu
    Copy the full SHA
    b2abc63 View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    2cfa7ff View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2020

  1. test-export: compatible with all versions of visual studio

    (cherry picked from commit 9adc9f1)
    ygj6 authored and azat committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    4e8e461 View commit details
    Browse the repository at this point in the history
  2. cmake: set rpath for libraries on linux

    (cherry picked from commit ce8be23)
    ygj6 authored and azat committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    813cc73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1acaa9a View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2020

  1. test-closed: fix leak

    (cherry picked from commit e2f938c)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    ff67e8c View commit details
    Browse the repository at this point in the history
  2. test: really disable bufferevent_pair_release_lock under ASAN (and fi…

    …x gcc)
    
    (cherry picked from commit 7b9ba3b)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    82ae28e View commit details
    Browse the repository at this point in the history
  3. ci: set build type to debug with sanitizers

    (cherry picked from commit 9da1743)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    733201a View commit details
    Browse the repository at this point in the history
  4. test: fix UB in evbuffer/empty_reference_prepend_buffer

    UBSAN reports:
      test/regress_buffer.c:2360:2: runtime error: null pointer passed as argument 1, which is declared to never be null
      /usr/include/string.h:140:33: note: nonnull attribute specified here
    
    (cherry picked from commit ba19b35)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    777cc2b View commit details
    Browse the repository at this point in the history
  5. test: fix leak in dns/getaddrinfo_cancel_stress

    Some requests may get response (evutil_addrinfo) from gaic_server_cb,
    in case of cancel_event (10000ms) will not be fast enough.
    
    (cherry picked from commit 90bcf2d)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    a03f0f8 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'fix-signal-leak'

    Fixes main/fork under ASAN (LSAN if to be precise)
    
    * fix-signal-leak:
      select: requires reinit (otherwise it leaks signal handlers)
      poll: requires reinit (otherwise it leaks signal handlers)
    
    (cherry picked from commit f6bfa8b)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    1c9cc07 View commit details
    Browse the repository at this point in the history
  7. ci/linux: create dist artifact only if dist archive was built

    Fixes: 512c88c ("ci/linux: add dist check")
    (cherry picked from commit e9a6b12)
    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    c660a57 View commit details
    Browse the repository at this point in the history
  8. Update ChangeLog

    azat committed Jul 5, 2020
    Configuration menu
    Copy the full SHA
    1324a03 View commit details
    Browse the repository at this point in the history