mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1298] [CLOSED] [FIX] segmentation fault on encoding McPoodle's raw to WebVTT #2076
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/1298
Author: @siv2r
Created: 2/9/2021
Status: ❌ Closed
Base:
master← Head:webvtt-segfault-fix📝 Commits (1)
f95f435allocated space for context->timing📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
src/lib_ccx/ccx_encoders_common.c(+1 -0)📄 Description
In raising this pull request, I confirm the following (please checkboxes):
My familiarity with the project is as follows (check one):
Fixes #1294
Changes
The problem occurs in the initialization of the encoder context. The
mallocfunction acts differently forUK_ITVBE.ts(here,ctx->timingis not null) andcc_sample_dos2unix.bin(here,ctx->timingis set tonull)cf84757e02/src/lib_ccx/ccx_encoders_common.c (L935-L939)I added a fix by allocating memory for
ctx->timing.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.