libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Small leaks left in test_upgrade.c


From: Tim Ruehsen
Subject: [libmicrohttpd] Small leaks left in test_upgrade.c
Date: Sat, 03 Mar 2018 09:42:43 +0100

These leaks (below) seem to be the last thing to prevent the Gitlab CI
runner from succeeding. When working I can start adding an Alpine
runner (using musl instead of GNU libc).

I saw in the code that you are already doing some fuzzing.
If you are interested, I could integrate fuzzing directly with support
for OSS-Fuzz (Google's continuous fuzzing project) plus using the
resulting corpora for automated regression testing.

Regards, Tim 

--
==7170==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 2 object(s) allocated from:
    #0 0x4ba1b8 in malloc
(/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade+
0x4ba1b8)
    #1 0x4eddce in log_cb
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade.c:485:1
0
    #2 0x7fe45e43efd7 in parse_initial_message_line
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/connection.c:2256:11
    #3 0x7fe45e4322ce in MHD_connection_handle_idle
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/connection.c:3297:25
    #4 0x7fe45e4bd3c1 in call_handlers
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:1114:17
    #5 0x7fe45e4bb51c in thread_main_handle_connection
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:2033:15
    #6 0x7fe45e4e981a in named_thread_starter
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/mhd_threads.c:275:10
    #7 0x7fe45e19a493 in start_thread (/lib/x86_64-linux-
gnu/libpthread.so.0+0x7493)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x4ba1b8 in malloc
(/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade+
0x4ba1b8)
    #1 0x4eddce in log_cb
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade.c:485:1
0
    #2 0x7fe45e43efd7 in parse_initial_message_line
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/connection.c:2256:11
    #3 0x7fe45e4322ce in MHD_connection_handle_idle
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/connection.c:3297:25
    #4 0x7fe45e4bd3c1 in call_handlers
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:1114:17
    #5 0x7fe45e4ba59d in thread_main_handle_connection
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:1966:15
    #6 0x7fe45e4e981a in named_thread_starter
/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/mhd_threads.c:275:10
    #7 0x7fe45e19a493 in start_thread (/lib/x86_64-linux-
gnu/libpthread.so.0+0x7493)

SUMMARY: AddressSanitizer: 24 byte(s) leaked in 3 allocation(s).
FAIL test_upgrade (exit status: 1)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]