fix: null pointer dereference when stdin produces no caption data#2210
fix: null pointer dereference when stdin produces no caption data#2210DhanushVarma-2 wants to merge 1 commit intoCCExtractor:masterfrom
Conversation
54f3a59 to
a3e5ae8
Compare
6641cef to
923941e
Compare
Two bugs: (1) general_loop.c dereferences NULL dec_ctx in the live_stream progress code when no data was processed. (2) Rust switch_to_next_file calls demux_ctx.open() for stdin, triggering null pointer dereference via ptr::null(). Fix: add NULL check for dec_ctx in general_loop.c, and return early from switch_to_next_file for stdin/network/tcp sources instead of calling demux_ctx.open().
923941e to
721a3dc
Compare
|
echo "" | ccextractor -stdin |
|
@cfsmp3 |
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 9f250b1...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit 9f250b1...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |



Two bugs:
1: general_loop.c dereferences NULL dec_ctx in the live_stream progress code when no data was processed.
2: Rust switch_to_next_file calls demux_ctx.open() for stdin, triggering null pointer dereference via ptr::null().
Fix: add NULL check for dec_ctx in general_loop.c, and return early from switch_to_next_file for stdin/network/tcp sources instead of calling demux_ctx.open().