Commit 016b64a
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 e9edf98 commit 016b64a
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1971 | 1971 | | |
1972 | 1972 | | |
1973 | 1973 | | |
| 1974 | + | |
1974 | 1975 | | |
1975 | 1976 | | |
1976 | 1977 | | |
1977 | 1978 | | |
1978 | 1979 | | |
1979 | 1980 | | |
1980 | 1981 | | |
1981 | | - | |
| 1982 | + | |
| 1983 | + | |
1982 | 1984 | | |
1983 | 1985 | | |
1984 | 1986 | | |
| |||
0 commit comments