]> git.ipfire.org Git - thirdparty/zstd.git/commit
check potential overflow of compressBound()
authorYann Collet <cyan@fb.com>
Thu, 15 Dec 2022 23:23:15 +0000 (15:23 -0800)
committerYann Collet <cyan@fb.com>
Thu, 15 Dec 2022 23:23:15 +0000 (15:23 -0800)
commit45ed0df18a24430875fb4e90378b150e15c200f7
tree8ff0aad645048c15c4d95616f458df2cd18fab17
parent6be3181307f6bb3824eb322db67675f393671266
check potential overflow of compressBound()

fixed #3323, reported by @nigeltao

Completed documentation around this risk
(which is largely theoretical,
I can't see that happening in any "real world" scenario,
but an erroneous @srcSize value could indeed trigger it).
lib/compress/zstd_compress.c
lib/zstd.h