-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
double-free in compress.mod #1601
Comments
bug can not easily be triggered (because i dunno how to make
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we start here:
eggdrop/src/mod/compress.mod/compress.c
Line 256 in 0ee04c2
first free() is here:
eggdrop/src/mod/compress.mod/compress.c
Line 217 in 0ee04c2
if the following
gzClose()
fails:eggdrop/src/mod/compress.mod/compress.c
Lines 218 to 219 in 0ee04c2
the following code is executed:
eggdrop/src/mod/compress.mod/compress.c
Line 259 in 0ee04c2
it will not only double free, like here:
eggdrop/src/mod/compress.mod/compress.c
Line 271 in 0ee04c2
but also access the just closed fin.
I guess this code path was never checked.
We should fix this, but its low prio, because
gzClose()
like never fails ;)The text was updated successfully, but these errors were encountered: