History

avfilter/vf_vpp_qsv: Don't overrun stack array

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.

Andreas Rheinhardt committed 5 years ago

Commit cc6f6a11 parent 3b298641 file · +1 −1Browse files

Unified · Split

libavfilter/vf_vpp_qsv.c+1−1
@@ -42,7 +42,7 @@ · 41 unmodified lines
4242 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
4343
4444 /* number of video enhancement filters */
45−#define ENH_FILTERS_COUNT (7)
45+#define ENH_FILTERS_COUNT (8)
4646 #define QSV_HAVE_ROTATION QSV_VERSION_ATLEAST(1, 17)
4747 #define QSV_HAVE_MIRRORING QSV_VERSION_ATLEAST(1, 19)
4848 #define QSV_HAVE_SCALING_CONFIG QSV_VERSION_ATLEAST(1, 19)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t