]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: compress: fix bad encoding on last LZ77 flag
authorEnzo Matsumiya <ematsumiya@suse.de>
Mon, 13 Apr 2026 19:07:07 +0000 (16:07 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 19 Apr 2026 14:46:46 +0000 (09:46 -0500)
commita13e942a03feea211c67a97bc6a57f82aa56e4b6
treeef52ce96c964b2f2baa390045a03974e10a68c16
parentc4d3fc5844d685441befd0caaab648321013cdfd
smb: client: compress: fix bad encoding on last LZ77 flag

End-of-stream flag could lead to UB because of int promotion
(overwriting signed bit).

Fix it by changing operand from '1' to '1UL'.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/compress/lz77.c