Consolidate all token length limits (1024), including one bad one (80) hardcoded on the stack (issue #40, issue #41).
This commit is contained in:
parent
1070e629a9
commit
f330f08129
9 changed files with 74 additions and 23 deletions
|
|
@ -192,8 +192,8 @@ void TAllocation::checkGuardBlock(unsigned char*, unsigned char, const char*) co
|
|||
#ifdef GUARD_BLOCKS
|
||||
for (int x = 0; x < guardBlockSize; x++) {
|
||||
if (blockMem[x] != val) {
|
||||
const int maxSize = 80;
|
||||
char assertMsg[80];
|
||||
const int maxSize = 80;
|
||||
char assertMsg[maxSize];
|
||||
|
||||
// We don't print the assert message. It's here just to be helpful.
|
||||
snprintf(assertMsg, maxSize, "PoolAlloc: Damage %s %zu byte allocation at 0x%p\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue