Re: [FFmpeg-devel] [PATCH] avformat/oggparseflac: check init_get_bits' result

2023-05-30 Thread James Almer
On 5/30/2023 6:21 PM, Paul Arzelier wrote: From: Polochon-street Check init_get_bits' result for NULL, to avoid dereferencing a NULL pointer later (CWE-476). Without this, a segfault happens when trying to decode a handcrafted ogg-flac file with an absurdly long (e.g. 268435455 bytes) ogg heade

[FFmpeg-devel] [PATCH] avformat/oggparseflac: check init_get_bits' result

2023-05-30 Thread Paul Arzelier
From: Polochon-street Check init_get_bits' result for NULL, to avoid dereferencing a NULL pointer later (CWE-476). Without this, a segfault happens when trying to decode a handcrafted ogg-flac file with an absurdly long (e.g. 268435455 bytes) ogg header. Thanks to jamrial for basically writing t