lib/crc32c: fix assert()
Addresses: https://github.com/util-linux/util-linux/pull/2165 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
42e141d205
commit
5f03a197bd
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ ul_crc32c_exclude_offset(uint32_t crc, const unsigned char *buf, size_t size,
|
|||
size_t exclude_off, size_t exclude_len)
|
||||
{
|
||||
size_t i;
|
||||
assert((exclude_off + exclude_len) < size);
|
||||
|
||||
assert((exclude_off + exclude_len) <= size);
|
||||
|
||||
crc = crc32c(crc, buf, exclude_off);
|
||||
for (i = 0; i < exclude_len; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue