mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:compression: Correctly fix sign extension of long matches (CID 1517275)
Commit 6b4d94c987
was a previous attempt
to fix this issue.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
a2d96f5e29
commit
03ca8c25d0
@ -1049,7 +1049,7 @@ static ssize_t write_compressed_bytes(uint16_t symbol_values[512],
|
||||
}
|
||||
|
||||
len = intermediate[i + 1];
|
||||
len |= intermediate[i + 2] << 16U;
|
||||
len |= (uint32_t)intermediate[i + 2] << 16;
|
||||
distance = intermediate[i + 3];
|
||||
i += 3;
|
||||
} else if (c == 0xffff) {
|
||||
|
Loading…
Reference in New Issue
Block a user