Skip to content
Snippets Groups Projects
  1. May 25, 2021
  2. May 24, 2021
  3. Apr 19, 2021
  4. Apr 16, 2021
    • Tomas Krizek's avatar
      daemon/http: fix memleak if http_write_pkt() fails · 52097127
      Tomas Krizek authored and Vladimír Čunát's avatar Vladimír Čunát committed
      This can happen for example when we want to send an answer, but the
      http stream (or the connection?) is already closed.
      
      Direct leak of 48 byte(s) in 1 object(s) allocated from:
          #0 0x7f5ad2445459 in __interceptor_malloc /build/gcc/src/gcc/libsanitizer/asan/asan_malloc_linux.cpp:145
          #1 0x55c0db3fc442 in http_write_pkt ../daemon/http.c:610
          #2 0x55c0db3fc882 in http_write ../daemon/http.c:651
          #3 0x55c0db3e9bb1 in qr_task_send ../daemon/worker.c:700
          #4 0x55c0db3ee86c in qr_task_finalize ../daemon/worker.c:1321
          #5 0x55c0db3f0123 in qr_task_step ../daemon/worker.c:1633
          #6 0x55c0db3f0982 in worker_submit ../daemon/worker.c:1755
          #7 0x55c0db3d992a in session_wirebuf_process ../daemon/session.c:759
          #8 0x55c0db3c5f01 in udp_recv ../daemon/io.c:89
          #9 0x7f5ad22b0e0e  (/usr/lib/libuv.so.1+0x20e0e)
      Verified
      52097127
    • Tomas Krizek's avatar
      daemon/http: additional guards from memleaks · dca78626
      Tomas Krizek authored and Lukas Jezek's avatar Lukas Jezek committed
    • Tomas Krizek's avatar
      daemon/http: improve handling of stream errors · 2cdec753
      Tomas Krizek authored and Lukas Jezek's avatar Lukas Jezek committed
      The on_frame_recv() callback ins't guaranteed to be called by nghttp2.
      This can happen e.g. in a case when nghttp2 issues a PROTOCOL_ERROR
      RST_STREAM frame. Previously, it would leave the connection in a
      stream-processing state, making it completely useless.
      
      While this guarantees a cleanup will be called eventually, some streams
      may still get ignored due to the order of various callbacks and data
      processing procedures. Still, it's better than the previous
      implementation.
  5. Apr 14, 2021
  6. Mar 30, 2021
  7. Mar 15, 2021
  8. Mar 12, 2021
  9. Mar 09, 2021