Changeset 51defd92 in rtems for cpukit/include/rtems/malloc.h

Timestamp:
04/20/21 17:30:35 (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
2a24f99d
Parents:
6c66bbb
git-author:
Sebastian Huber <sebastian.huber@…> (04/20/21 17:30:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/20/21 18:33:03)
Message:

Fix calloc() behaviour in case of overflow

The multiplication to calculate the length of the memory area to
allocate may overflow. Return NULL in case of an overflow.

Close #4389.

(No files)

Note: See TracChangeset for help on using the changeset viewer.