summaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2025-04-02 16:45:44 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-03 19:11:42 +0300
commit9364f17ba40422d2661da295bb0da68ca87cc57e (patch)
tree1d12f4f50d8ec65a5f177ff9bb8609c3d1007e9e /lib/test_fortify/write_overflow-strncpy.c
parenta07c43e6c2ff4cbdba7abf8d533b2faf19fa2287 (diff)
downloadlinux-9364f17ba40422d2661da295bb0da68ca87cc57e.tar.xz
bcachefs: Add error handling for zlib_deflateInit2()
In attempt_compress(), the return value of zlib_deflateInit2() needs to be checked. A proper implementation can be found in pstore_compress(). Add an error check and return 0 immediately if the initialzation fails. Fixes: 986e9842fb68 ("bcachefs: Compression levels") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions