# AR# 58055

## 描述

The Malloc() in the CortexA9 Standalone BSP delivered with SDK does not work correctly . The Malloc() allocates memory from the heap as expected. However, the Malloc() function does not seem to determine when the system heap is out of space and causes overwrite issues, and thus leading to the application to crash.

How can this be resolved?

## 解决方案

This is a known issue.

Unzip, the file and replace the _sbrk.c file in
<EDK Install Directory>\sw\lib\bsp\standalone_v3_11_a\src\cortexa9\gcc

Or, on Standalone SDK:
<SDK Install Directory>\sw\lib\bsp\standalone_v3_11_a\src\cortexa9\gcc

## 附件

AR58055.zip 1 KB ZIP
AR# 58055

Type 综合文章

Tools