22 | | EDIT: hmm actually SizeAvailable() and sizeUsed() are '''suspect''' as all heck: this page |
23 | | https://api.haiku-os.org/classBBuffer.html#a2559ff70225558ef1bc75d166e238e6d |
24 | | says that sizeavailable is the size of the allocated memory, implying that SizeUsed() should be smaller or equal to it.. So writing 14112 bytes into a 378 memory alloc is a massive heap corruption, or am I missing something? |
| 22 | EDIT: hmm actually SizeAvailable() and SizeUsed() are '''suspect''' as all heck: [https://api.haiku-os.org/classBBuffer.html#a2559ff70225558ef1bc75d166e238e6d this page] says that SizeAvailable() is the size of the allocated memory, implying that SizeUsed() should be smaller or equal to it.. So writing 14112 bytes into a 378 memory alloc is a massive heap corruption, or am I missing something? |