aggdraw-64bits
aggdraw-64bits copied to clipboard
ASAN issues: Sized new mismatch with unsized delete
Using new PointF[size] with delete ptr, but shouldn't it be delete[] ptr ?
Here is what I am seeing, I have anonymized using ????
==2191027==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x61800013e480
SCARINESS: 10 (alloc-dealloc-mismatch)
#0 0x7f599ec100b0 in operator delete(void*) (????)
#1 0x7f597d6b0187 in draw_line(DrawObject*, _object*) aggdraw-1.1-64bits/aggdraw.cxx:808
...
0x61800013e480 is located 0 bytes inside of 808-byte region [0x61800013e480,0x61800013e7a8)
allocated by thread T0 here:
#0 0x7f599ec0f4e8 in operator new[](unsigned long) (????)
#1 0x7f597d6acea1 in getpoints(_object*, int*) aggdraw-1.1-64bits/aggdraw.cxx:582
#2 0x7f597d6b004f in draw_line(DrawObject*, _object*) aggdraw-1.1-64bits/aggdraw.cxx:801