If size is greater than (UINT32_MAX - SIZEOF_MM_ALLOCNODE), malloc size can be...
If size is greater than (UINT32_MAX - SIZEOF_MM_ALLOCNODE), malloc size can be overflow by MM_ALIGN_UP macro. For example, if task_create() called with stack_size == -1, up_create_stack() functions allocates SIZEOF_MM_ALLOCNODE bytes for stack. This can cause data abort in up_stack_color() function.
Loading
Please register or sign in to comment