Bug 6773

Summary: Segfault when passing nonexisting filter option (fixed in master)
Product: Fedora Reporter: onlylogout
Component: ffmpegAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: RESOLVED FIXED    
Severity: minor CC: belegdol, kwizart, leigh123linux
Priority: P5    
Version: f38   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description onlylogout 2023-10-07 17:08:42 CEST
The following command segfaults on my system:
```
ffmpeg -y -f rawvideo -s 1x1 -i /dev/zero -vf palettegen=doesnt_exist=64 dummy.png
```

That's because the AVOption is not initialized to zero and the nonexisting option doesn't begin with a slash.
There's a fix for this already in the master branch, but contrary to its description, it's not just a "silence warning" thing.

The fix:
https://github.com/FFmpeg/FFmpeg/commit/a0a0a804998da8d1a397479c9bafeb000e6be088
Comment 1 Dominik 'Rathann' Mierzejewski 2023-10-08 21:46:05 CEST
Thanks for the report. I can reproduce the crash. I'll backport the fix as soon as possible.
Comment 2 Dominik 'Rathann' Mierzejewski 2023-12-18 09:31:27 CET
This is fixed in F39+.
Comment 3 Dominik 'Rathann' Mierzejewski 2024-05-14 13:20:22 CEST
I do not have time to backport this to F38.