mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-29 18:09:37 +00:00
[PR #1313] [FIX] Fix segfault on Windows #2094
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1313
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Using the format specifier %d to print out size is technically undefined behavior, as size is defined as a u64, while %d is meant to print out an int (which is typically 32 bits). This causes a segfault on Windows as this apparently causes the wrong pointer to be passed in for the filename.
The segfault was caused with the file from #1223, but I don't know if it was related as I was not able to reproduce it hanging as mentioned in that issue. This also appears to be similar to #1252 as the output right before the crash is very similar to the output in https://github.com/CCExtractor/ccextractor/issues/1252#issuecomment-657259396 and the change that causes this is
bbe2f33399, which is before 0.88 was released.