[Top][All Lists]

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

[bug #53284] realloc() does not respect __freelist size for small alloca

From: Petteri Aimonen
Subject: [bug #53284] realloc() does not respect __freelist size for small allocations
Date: Tue, 31 Dec 2019 05:41:55 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Follow-up Comment #1, bug #53284 (project avr-libc):

This got triggered by nanopb fuzz tests; I'm adding a workaround on my library
side as this would otherwise have potential security implications. It would be
great if this could eventually be fixed on avr-libc side.

I think the suggested patch does not address the case of len == 0, which
should be equivalent to free(ptr). I've attached a patch that handles that

(file #48143)

Additional Item Attachment:

File name: avr-libc-realloc-small-len-values.patch Size:0 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

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