mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1313] [MERGED] [FIX] Fix segfault on Windows #2091
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?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1313
Author: @pranavrajpal
Created: 4/2/2021
Status: ✅ Merged
Merged: 4/2/2021
Merged by: @cfsmp3
Base:
master← Head:fix-segfault-windows📝 Commits (2)
78eca44Fix segfault on Windows2461821Add change to changelog📊 Changes
2 files changed (+3 additions, -1 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/thirdparty/gpacmp4/gpac/internal/isomedia_dev.h(+2 -1)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.