| 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? |
| 25 | |
| 26 | Other than that, [http://grok.bikemonkey.org/source/xref/haiku/src/kits/media/BufferGroup.cpp#161 this line] implies that BBuffer::Data() is a common occurence error condition and should be handled properly.. |