fix: 2182 - Heap OOB Read in switch_to_next_file()#2183
fix: 2182 - Heap OOB Read in switch_to_next_file()#2183carbonFibreCode wants to merge 2 commits intoCCExtractor:masterfrom
Conversation
cfsmp3
left a comment
There was a problem hiding this comment.
Fix looks correct, but the format_rust CI check is failing. Please run cargo fmt on your changes.
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 90128d8...:
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 e4bcade...:
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:
This PR does not introduce any new test failures. However, some tests are failing on both master and this PR (see above). Check the result page for more info. |
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
fixes #2182
I moved the empty string filter before allocating the C array. Now, string_to_c_chars() only receives the exact number of valid paths, ensuring the memory allocation size perfectly matches the
num_input_fileslimit given to the C codebase.