The size calculation is magic to me with all these numbers so I was not able to fix this by correcting the size. Also further complicating things is that this size calculation worked for older versions.
So the easiest workaround I found was to simply shrink the buffer to the actual size to counter the over-allocation issue.
Feel free to rework as needed if you know how to fix the size calculation tho!
The size calculation is magic to me with all these numbers so I was not able to fix this by correcting the size. Also further complicating things is that this size calculation worked for older versions.
So the easiest workaround I found was to simply shrink the buffer to the actual size to counter the over-allocation issue.
Feel free to rework as needed if you know how to fix the size calculation tho!