You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.
The SDK BSP MEM's realloc implementation does not enforce C standard behaviour. This is required if the underlying platform's realloc function doesn't meet the standard. In this particular case the behaviour on NULL input ptr value differs from the standard (below) for Raspberry Pi / ARM architecture.
realloc - memory reallocator : "If ptr is a null pointer, realloc() shall be equivalent to malloc() for the specified size." C realloc C standard definition.
Some more details
Seems "only" the Wolfssl uses realloc and/or uses 'realloc' with NULL ptr input.
The SDK actually propagates the standard C adherence to the underlying platform's realloc function by only forwarding the parameters intact, without applying any logic.
The text was updated successfully, but these errors were encountered:
The SDK BSP MEM's
realloc
implementation does not enforce C standard behaviour. This is required if the underlying platform'srealloc
function doesn't meet the standard. In this particular case the behaviour on NULL input ptr value differs from the standard (below) for Raspberry Pi / ARM architecture.iot-device-sdk's POSIX realloc function impl.
realloc - memory reallocator : "If ptr is a null pointer, realloc() shall be equivalent to malloc() for the specified size."
C
realloc
C standard definition.Some more details
realloc
and/or uses 'realloc' with NULL ptr input.realloc
function by only forwarding the parameters intact, without applying any logic.The text was updated successfully, but these errors were encountered: