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

Fix some bugs in ffmpeg decoder plugin #1185

Merged
merged 4 commits into from
Jun 12, 2024
Merged

Conversation

roticv
Copy link
Contributor

@roticv roticv commented Jun 11, 2024

  • memory leak fix
  • heap buffer overflow fix

These issues were caught by ASAN

roticv and others added 3 commits June 11, 2024 11:39
There is a bug where insufficient memory is allocated for av_parser_parse2
because the padding isn't added. ffmpeg may read past the memory allocated
causing heap-buffer-overflow. This bug is caught by ASAN.
There is a memory leak of NalUnit as the older NalUnit is not freed before
it is overwritten by the newer NalUnit in decoder->NalMap
Address review comment
@farindk farindk merged commit cb2a0fd into strukturag:master Jun 12, 2024
34 of 35 checks passed
@farindk
Copy link
Contributor

farindk commented Jun 12, 2024

Thank you

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

Successfully merging this pull request may close these issues.

2 participants