Hi

On Wed, Jan 01, 2025 at 11:58:39PM -0300, James Almer wrote:
> Fixes NULL pointer dereferences.
> Fixes ticket #11393.
> 
> Signed-off-by: James Almer <jamr...@gmail.com>
> ---
>  libavcodec/jpeg2000dec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
> index 84eebfd1b2..352860f4c0 100644
> --- a/libavcodec/jpeg2000dec.c
> +++ b/libavcodec/jpeg2000dec.c
> @@ -1517,6 +1517,7 @@ static int 
> jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,
>                  }
>              }
>              av_freep(&cblk->lengthinc);
> +            cblk->nb_lengthinc = 0;
>          }
>      }
>      // Save state of stream

that looks correct

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The difference between a dictatorship and a democracy is that every 4 years
the population together is allowed to provide 1 bit of input to the government.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to