mhttpd crash without -O2
Issue #271
resolved
I see an mhttpd crash if built without “-O2”. Looks like stack corruption (note how the mhttpd.cxx line number is 0).
(lldb) bt
* thread #3, stop reason = signal SIGABRT
* frame #0: 0x00007fff6b1f533a libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff6b2b1e60 libsystem_pthread.dylib`pthread_kill + 430
frame #2: 0x00007fff6b17c8a2 libsystem_c.dylib`__abort + 139
frame #3: 0x00007fff6b156d7b libsystem_c.dylib`__stack_chk_fail + 100
frame #4: 0x00000001000270f1 mhttpd`show_odb_page(pp=0x0000000100b57000, r=0x0000000103504080, enc_path="Example", enc_path_size=256, dec_path="Example", write_access=1) at mhttpd.cxx:0
(lldb) up
K.O.
Comments (3)
-
reporter -
reporter - changed status to resolved
Fix bug
#271by not calling db_sprintf() for TID_STRING and TID_LINK data.→ <<cset 2a8241e75389>>
-
reporter Fixed, commit 2a8241e. K.O.
- Log in to comment
cause of crash is buffer overflow in db_sprintf(), see bug #272. K.O.