-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid segmentation faults in dinit_encoder() and add_cc_sub_text()
This commit adds some checks to avoid segmentation faults. * In `addcc_sub_text()`, strdup will cause a segfault if we duplicate an empty string. * In `dinit_encoder()`, accessing memory that doesn't exist will cause a segfault in case of processing hardsubs.
- Loading branch information
1 parent
a0e7ddd
commit a1dc19d
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters