Probably memory leaks #234

Open
opened 2026-01-29 16:38:36 +00:00 by claunia · 0 comments
Owner

Originally created by @maxkoryukov on GitHub (Jan 12, 2017).

I think, there are memory leaks here:

6c733e96c9/src/lib_ccx/dvb_subtitle_decoder.c (L1657-1658)

memcpy on line 1657 causes overwrites of pointers to the allocated memory:

  1. enc_ctx->prev->buffer
  2. enc_ctx->prev->subline
  3. enc_ctx->prev->sbs_buffer

This memory is allocated in the function ccx_encoders_common.c::init_encoder

Originally created by @maxkoryukov on GitHub (Jan 12, 2017). I think, there are memory leaks here: https://github.com/CCExtractor/ccextractor/blob/6c733e96c9aaeb0a76c935da7e11d362afca36f4/src/lib_ccx/dvb_subtitle_decoder.c#L1657-1658 `memcpy` on line 1657 causes overwrites of pointers to the allocated memory: 1. `enc_ctx->prev->buffer` 2. `enc_ctx->prev->subline` 3. `enc_ctx->prev->sbs_buffer` This memory is allocated in the function `ccx_encoders_common.c::init_encoder`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#234