Commit 1936310
drm/amdgpu/vcn3: Avoid overflow on msg bound check
commit e6e9fab upstream.
As pointed out by SDL, the previous condition may be vulnerable to
overflow.
Fixes: b193019 ("drm/amdgpu/vcn3: Prevent OOB reads when parsing dec msg")
Cc: SDL <sdl@nppct.ru>
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit db00257)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 9b2c795 commit 1936310
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
| 1855 | + | |
1855 | 1856 | | |
1856 | 1857 | | |
1857 | 1858 | | |
1858 | 1859 | | |
1859 | 1860 | | |
1860 | 1861 | | |
1861 | 1862 | | |
1862 | | - | |
| 1863 | + | |
| 1864 | + | |
1863 | 1865 | | |
1864 | 1866 | | |
1865 | 1867 | | |
| |||
0 commit comments