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

heap buffer overflow in filter curves #156

Closed
jaromil opened this issue Jan 18, 2023 · 1 comment · Fixed by #164
Closed

heap buffer overflow in filter curves #156

jaromil opened this issue Jan 18, 2023 · 1 comment · Fixed by #164
Labels

Comments

@jaromil
Copy link
Member

jaromil commented Jan 18, 2023

{
"name":"Curves",
"type":"filter",
"color_model":"rgba8888",
"num_params":"16"
}=================================================================
==4639==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60200000ad34 at pc 0x7fd451f7531f bp 0x7ffcbd128650 sp 0x7ffcbd128648
READ of size 4 at 0x60200000ad34 thread T0
#0 0x7fd451f7531e in f0r_update /home/jrml/frei0r/build/../src/filter/curves/curves.c:958:14
#1 0x4ce10b in main /home/jrml/frei0r/test/frei0r-test.c:148:2
#2 0x7fd468bb9d09 in __libc_start_main csu/../csu/libc-start.c:308:16
#3 0x420819 in _start (/home/jrml/frei0r/test/frei0r-test+0x420819)

0x60200000ad34 is located 0 bytes to the right of 4-byte region [0x60200000ad30,0x60200000ad34)
allocated by thread T0 here:
#0 0x49a88d in malloc (/home/jrml/frei0r/test/frei0r-test+0x49a88d)
#1 0x7fd451f6ae38 in f0r_construct /home/jrml/frei0r/build/../src/filter/curves/curves.c:260:20
#2 0x4cdb61 in main /home/jrml/frei0r/test/frei0r-test.c:126:14
#3 0x7fd468bb9d09 in __libc_start_main csu/../csu/libc-start.c:308:16

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/jrml/frei0r/build/../src/filter/curves/curves.c:958:14 in f0r_update

@jaromil jaromil added the bug label Jan 18, 2023
@Merlimau
Copy link

Probably related to this commit: 04ac1c5

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

Successfully merging a pull request may close this issue.

2 participants