Commit e812412
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 29371f3 commit e812412
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1906 | 1906 | | |
1907 | 1907 | | |
1908 | 1908 | | |
| 1909 | + | |
1909 | 1910 | | |
1910 | 1911 | | |
1911 | 1912 | | |
1912 | 1913 | | |
1913 | 1914 | | |
1914 | 1915 | | |
1915 | 1916 | | |
1916 | | - | |
| 1917 | + | |
| 1918 | + | |
1917 | 1919 | | |
1918 | 1920 | | |
1919 | 1921 | | |
| |||
0 commit comments