]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: store index value lengths as size_t
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 24 Sep 2024 18:55:20 +0000 (20:55 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 1 Oct 2024 14:23:31 +0000 (09:23 -0500)
commit8c2d7125e83f5bc259b39ae33b92b895c14bf483
tree40db7ac9c0d2d2a3c28dd9dcccfd32af697d546d
parentea16db2c0e3b5c3f3de82b517af9f91dc3e7de4e
libkmod: store index value lengths as size_t

The unsigned int data type might be too small on 64 bit systems and
when encountering huge and illegal index files.

Since lengths are retrieved from strbuf structs, this also keeps
the data type lengths in sync.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/152
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-index.c
libkmod/libkmod-index.h