diff options
author | Gao Xiang <[email protected]> | 2020-01-07 10:25:46 +0800 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2020-01-11 18:29:19 +0800 |
commit | 4d2024370d877f9ac8b98694bcff666da6a5d333 (patch) | |
tree | 33e0647654abdca047ab3584abc4a0b26378c84d /lib/test_overflow.c | |
parent | e3915ad94bfa0e2c1818837af618e9adec74eb1b (diff) |
erofs: fix out-of-bound read for shifted uncompressed block
rq->out[1] should be valid before accessing. Otherwise,
in very rare cases, out-of-bound dirty onstack rq->out[1]
can equal to *in and lead to unintended memmove behavior.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 7fc45dbc938a ("staging: erofs: introduce generic decompression backend")
Cc: <[email protected]> # 5.3+
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions