Application Problems after Patch Install

Order Number: TD 2696-CR

The malloc() function in libc.so and libc.a has been updated in the V4.0D/E BL12 patch kit and V4.0F/V5.0 SSB to return non-zeroed memory, which is standard behavior but causes issues for some applications that rely on zeroed memory for small allocations. This can lead to unpredictable results, such as junk characters appearing in strings if they are not properly null-terminated. Developers are advised to correct their code to properly null-terminate strings or use calloc() if zero-filled memory is required. Known workarounds include backing out the patch kit (for V4.0D/E) or modifying the code to explicitly null-terminate strings.

TD 2696-CR
December 2001
3 pages
Quality

Original
5.2kB

Site structure and layout ©2026 Majenko Technologies