Skip to content

Fix crashes when opening or closing readers and exporting raw video - #1101

Merged
jonoomph merged 1 commit into
developfrom
libopenshot-stability-fixes
Sep 19, 2026
Merged

jonoomph merged 1 commit into
developfrom
libopenshot-stability-fixes

Conversation

@jonoomph

Copy link
Copy Markdown
Member

This fixes two libopenshot stability issues:

  • Overlapping reader Open() and Close() calls now check whether the reader is open while holding the existing mutex, preventing duplicate initialization or cleanup.
  • Raw-video export now gives each packet its own buffer, preventing a double-free. It also writes all image planes and correctly scales packet timestamps.

Regression tests cover overlapping reader calls, reopening and reading afterward, and raw-video packet data, timestamps, and decoded colors. A dedicated Linux CI step checks these cases with Valgrind.

@jonoomph

Copy link
Copy Markdown
Member Author

@jonoomph
jonoomph merged commit 813fcca into develop Sep 19, 2026
12 checks passed
@jonoomph
jonoomph deleted the libopenshot-stability-fixes branch September 19, 2026 21:56
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.

1 participant