]> git.ipfire.org Git - thirdparty/kmod.git/commit
strbuf: Extend strbuf_reserve_extra size check
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 18 Dec 2024 09:37:14 +0000 (10:37 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 2 Jan 2025 20:35:52 +0000 (14:35 -0600)
commit235a38bf51ee21e73de0110d7d22894f308920b9
tree08ddce31d7f72ff9678f1ab8125d0e3403241684
parentbcff223c7d6e56313c31261f6315f4ea7eeb1514
strbuf: Extend strbuf_reserve_extra size check

Make sure that alignment to BUF_STEP won't overflow if excessively
huge amount of memory is requested to be reserved.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/268
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/strbuf.c