liblzma: Update assert in vli_ceil4().

The argument to vli_ceil4() should always guarantee the return value
is also a valid lzma_vli. Thus the highest three valid lzma_vli values
are invalid arguments. All uses of the function ensure this so the
assert is updated to match this.

(cherry picked from commit 773f1e8622)
This commit is contained in:
Jia Tan 2023-08-28 21:50:16 +08:00 committed by Lasse Collin
parent 591ac56d42
commit 519896fc94
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ extern void lzma_index_prealloc(lzma_index *i, lzma_vli records);
static inline lzma_vli static inline lzma_vli
vli_ceil4(lzma_vli vli) vli_ceil4(lzma_vli vli)
{ {
assert(vli <= LZMA_VLI_MAX); assert(vli <= UNPADDED_SIZE_MAX);
return (vli + 3) & ~LZMA_VLI_C(3); return (vli + 3) & ~LZMA_VLI_C(3);
} }