Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASAN issues: Sized new mismatch with unsized delete #5

Open
fried opened this issue Dec 13, 2018 · 0 comments
Open

ASAN issues: Sized new mismatch with unsized delete #5

fried opened this issue Dec 13, 2018 · 0 comments

Comments

@fried
Copy link

fried commented Dec 13, 2018

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
@fried fried changed the title ASAN issues ASAN issues: Sized new mismatch with unsized delete Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant