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

stack-buffer-overflow detected in Clang AddressSanitizer #8

Open
philcaonz opened this issue Jan 13, 2019 · 0 comments
Open

stack-buffer-overflow detected in Clang AddressSanitizer #8

philcaonz opened this issue Jan 13, 2019 · 0 comments

Comments

@philcaonz
Copy link

==18859==ERROR: AddressSanitizer: stack-buffer-overflow on address 0xffce2ae6 at pc 0x0817261a bp 0xffcdf7a8 sp 0xffcdf79c
READ of size 1 at 0xffce2ae6 thread T0
    #0 0x8172619 in lzs_compress /builds/Application/dependencies/lzs/src/liblzs/lzs-compression.c:390:45

The offending line appears to be

inputHash = inputs_hash(*inPtr, *(inPtr + 1));

I'm suspecting the overflow is due to inPtr + 1 when inPtr is already at the last element of the input array.

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