[PATCH] Make zero size allocation result consistent
Joel Sherrill
joel at rtems.org
Tue May 4 12:07:46 UTC 2021
This is undefined behaviour and I would rather they all return NULL. No
portable program should ever do this.
In fact, it should be something caught in debug mode.
On Tue, May 4, 2021, 6:45 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:
> On 04/05/2021 08:49, Gedare Bloom wrote:
> > ok. This could break applications in strange ways if they depended on
> > the old behavior. A clear note will be needed in release.
>
> I added this to the release notes:
>
>
> https://git.rtems.org/rtems-release/commit/?id=f48aea09d8d82ab80568ad2edcd02b8a11bea886
>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax: +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210504/323e9761/attachment.html>
More information about the devel
mailing list