Skip to content

Fix potential double free if a previous error occurred#43

Merged
dloebl merged 2 commits into
mainfrom
fix-double-free-on-error
Feb 21, 2022
Merged

Fix potential double free if a previous error occurred#43
dloebl merged 2 commits into
mainfrom
fix-double-free-on-error

Conversation

@dloebl

@dloebl dloebl commented Feb 20, 2022

Copy link
Copy Markdown
Owner

Fix potential double free in cgif_close() which might have occurred if we detected a previous error in cgif_addframe() (e.g. CGIF_EINDEX). A freed entry in the frame queue was not marked as freed.
Introduced by #36. Issue can be reproduced with tests/eindex_anim.c.

fix potential double free which might have occured in cgif_close when a previos error was detected by cgif (e.g. CGIF_EINDEX)
@dloebl dloebl added the bug Something isn't working label Feb 20, 2022
@dloebl dloebl requested a review from MCLoebl February 20, 2022 15:50
@dloebl dloebl changed the title Fix potential double free if a previos error occurred Fix potential double free if a previous error occurred Feb 20, 2022
@dloebl dloebl merged commit fe74a4c into main Feb 21, 2022
@dloebl dloebl deleted the fix-double-free-on-error branch February 21, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants