aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorGao Xiang <[email protected]>2023-11-29 02:04:31 +0800
committerGao Xiang <[email protected]>2023-12-15 00:22:04 +0800
commit93d6fda7f926451a0fa1121b9558d75ca47e861e (patch)
treeb27290c8b90970bbf25bba505b71ef64f67cb236 /lib/test_fortify/write_overflow-strncpy-src.c
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab (diff)
erofs: fix memory leak on short-lived bounced pages
Both MicroLZMA and DEFLATE algorithms can use short-lived pages on demand for the overlapped inplace I/O decompression. However, those short-lived pages are actually added to `be->compressed_pages`. Thus, it should be checked instead of `pcl->compressed_bvecs`. The LZ4 algorithm doesn't work like this, so it won't be impacted. Fixes: 67139e36d970 ("erofs: introduce `z_erofs_parse_in_bvecs'") Reviewed-by: Yue Hu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions