apio
b8b8d20f5b
All checks were successful
continuous-integration/drone/push Build is passing
Who even thought that copying from an old pointer passed to realloc() was a good idea? Me, apparently. Additionally, the entire point of this memcpy() was to copy the data over from the old buffer (which is already freed btw) to the new buffer, which is already done by realloc. That's the entire point of realloc. The data is copied over by realloc already. And even if the old pointer is not unmapped, we scrub freed memory with useless data, so the memcpy sets the vector's buffer to that useless data as well. I don't even know how I managed to introduce so many bugs into Vector. At least it should work properly now. |
||
---|---|---|
.. | ||
include/luna | ||
src | ||
CMakeLists.txt |