libmicrohttpd
[Top][All Lists]
Advanced

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

[libmicrohttpd] Assertion failure with raw "GET /" request


From: Niels Martignène
Subject: [libmicrohttpd] Assertion failure with raw "GET /" request
Date: Tue, 01 Dec 2020 13:24:55 +0000

I have managed to get the following assertion failure when sending a simple 
"GET /" request with netcat to a debug build (libmicrohttpd 0.9.71).

    minimal_example: memorypool.c:324: MHD_pool_reallocate: Assertion `old == 
((void *)0) || pool->memory + pool->pos > (uint8_t*) old' failed.

I can reproduce this error with the minimal_example.c example. First, build and 
start the server with:

    ./configure --enable-asserts
    make
    src/examples/minimal_example 8888

And then, in a separate terminal, run this:

    echo -e "GET /\r\n\r\n" | nc 127.0.0.1 8888

This should trigger the assert and crash the server. The crash does not happen 
with "GET / HTTP/1.0".



reply via email to

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