]> git.ipfire.org Git - thirdparty/kmod.git/commit
Introduce and use u{add,mul}sz_overflow() helpers
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 30 Sep 2024 21:11:40 +0000 (22:11 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 15 Oct 2024 17:43:20 +0000 (12:43 -0500)
commit88c11d28d891236df51229ff017dce26e8c5a479
tree8710eb87cd64b9b9b37d774cee01ffd184a9ddaf
parent7eba0cd2cb79d27d93917d85300c27da23c3f54e
Introduce and use u{add,mul}sz_overflow() helpers

Instead of doing things manually add a few helpers and use them. As a
bonus point, fix the potential overflow in kmod_elf_get_strings().

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/169
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-builtin.c
libkmod/libkmod-elf.c
shared/array.c
shared/util.h