8b83dad82512a6948b63408f964463b063ad24c9 added another potentially used video enhancement filter without increasing a define for the number of such options which is used as the size of stack array. This can lead to a buffer overrun if all filters are used simultaneously. So increase said number. Fixes Coverity ticket #1489775.
Unified · Split
| @@ -42,7 +42,7 @@ · 41 unmodified lines | ||
| 42 | 42 | #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM) |
| 43 | 43 | |
| 44 | 44 | /* number of video enhancement filters */ |
| 45 | −#define ENH_FILTERS_COUNT (7) | |
| 45 | +#define ENH_FILTERS_COUNT (8) | |
| 46 | 46 | #define QSV_HAVE_ROTATION QSV_VERSION_ATLEAST(1, 17) |
| 47 | 47 | #define QSV_HAVE_MIRRORING QSV_VERSION_ATLEAST(1, 19) |
| 48 | 48 | #define QSV_HAVE_SCALING_CONFIG QSV_VERSION_ATLEAST(1, 19) |