For example, if we do the following:
TLN_Init(240, 160, 4, 128, 0);
TLN_SetRenderTarget(framebuffer, 4 * 256); // texture width must be power-of-2
Then when calling TLN_UpdateFrame we get a heap buffer overflow at:
|
memset(engine->priority, 0, engine->framebuffer.pitch); |
The buffer is allocated at:
|
context->priority = (uint32_t*)malloc(context->framebuffer.pitch); |
For example, if we do the following:
Then when calling
TLN_UpdateFramewe get a heap buffer overflow at:Tilengine/src/Draw.c
Line 173 in d4f8737
The buffer is allocated at:
Tilengine/src/Tilengine.c
Line 106 in d4f8737