[Top][All Lists]

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

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

From: Evgeny Grin
Subject: Re: [libmicrohttpd] Assertion failure with raw "GET /" request
Date: Wed, 2 Dec 2020 22:26:38 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3

The plan is to make it really soon. Even before Christmas. :)


On 02.12.2020 18:18, silvioprog wrote:
> We should indeed make a new release...

This version is being awaited! ūüôŹ

On Tue, Dec 1, 2020 at 7:29 PM Christian Grothoff < <>> wrote:

    Hi Niels,

    I can confirm the issue, alas it was already fixed in Git master (by
    Evgeny) in October. We should indeed make a new release...

    (Note: the assertion was basically wrong, so when compiling without
    assertions means that there is no harm from the issue.)

    Happy hacking!


    On 12/1/20 2:24 PM, Niels Martignène via libmicrohttpd wrote:
    > 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 8888
    > This should trigger the assert and crash the server. The crash
    does not happen with "GET / HTTP/1.0".

Silvio Clécio

Attachment: OpenPGP_0x460A317C3326D2AE.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

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