Change #271316
| Category | ffmpeg |
| Changed by | Zhao Zhili <zhilizhao@tencent.com> |
| Changed at | Tue 16 Jun 2026 14:41:53 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 7338d08bcf11b06045b678a66316f42da3d2de80 |
Comments
avutil: zero size output parameter on allocation failure Several _alloc() functions taking a size_t *size output parameter either left it uninitialized or unconditionally set it to sizeof(...) when the underlying av_mallocz() failed. Callers that check the returned pointer first are unaffected, but the stale value is a trap for any code path that inspects size without a NULL check. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Changed files
- libavutil/ambient_viewing_environment.c
- libavutil/dovi_meta.c
- libavutil/film_grain_params.c
- libavutil/hdr_dynamic_metadata.c
- libavutil/hdr_dynamic_vivid_metadata.c
- libavutil/mastering_display_metadata.c
- libavutil/spherical.c
- libavutil/stereo3d.c