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

two algorthims fail -fsanitize = address #449

Open
pm100 opened this issue Apr 5, 2023 · 3 comments
Open

two algorthims fail -fsanitize = address #449

pm100 opened this issue Apr 5, 2023 · 3 comments

Comments

@pm100
Copy link

pm100 commented Apr 5, 2023

I turned on a bunch of gcc sanitizers

set(CMAKE_CXX_FLAGS "-g -O0 -Wall -Wextra -pedantic-errors -fsanitize=leak -fsanitize=address -fsanitize=undefined ")

This picked up the three leaking programs I reported before. Plus it detected

knuth_morris_pratt:
=================================================================
==26751==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000d4 at pc 0x55f2698bd590 bp 0x7ffc0d266560 sp 0x7ffc0d266550

and

binary_search:
=================================================================
==26722==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000000d4 at pc 0x55972fefc2b9 bp 0x7ffe4cb4de70 sp 0x7ffe4cb4de60
@pm100 pm100 mentioned this issue Apr 6, 2023
@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in 15 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Inactive label Jun 10, 2023
@faheel faheel removed the Inactive label Jun 13, 2023
@faheel
Copy link
Member

faheel commented Jun 13, 2023

Thanks for reporting this! These sanitizers seem very helpful, I'll add them to the build process.

@pm100
Copy link
Author

pm100 commented Jun 18, 2023

i have pending fixes for these as well. Have been out of country for a while, hence the silence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants