fix armeabi-v7a crash - SIGBUS(BUS_ADRALN)
This commit is contained in:
parent
21aec548af
commit
eddc6557b9
|
@ -307,6 +307,8 @@ bool heapBlockAllocate(Heap* heap, int* handleIndexPtr, int size, int a4)
|
||||||
int blockSize;
|
int blockSize;
|
||||||
HeapHandle* handle;
|
HeapHandle* handle;
|
||||||
|
|
||||||
|
size += 4 - size % 4;
|
||||||
|
|
||||||
if (heap == NULL || handleIndexPtr == NULL || size == 0) {
|
if (heap == NULL || handleIndexPtr == NULL || size == 0) {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue