summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2026-04-13 16:07:08 -0300
committerSteve French <stfrench@microsoft.com>2026-04-22 09:55:34 -0500
commit20d4f9efe008be1b673f43d38d3d99fb1fd4cd68 (patch)
tree688a12e9c7c521e24c91a67fe7c546048f80a2c9 /include/linux
parent4c221711b23745e2fb961ee517e9ed96ce76f9cb (diff)
smb: client: compress: fix counting in LZ77 match finding
- lz77_match_len() increments @cur before checking for equality, leading to off-by-one match len in some cases. Fix by moving pointers increment to inside the loop. Also rename @wnd arg to @match (more accurate name). - both lz77_match_len() and lz77_compress() checked for "buf + step < end" when the correct is "<=" for such cases. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions