]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Properly skip first symbol entry
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 29 Oct 2024 16:45:01 +0000 (17:45 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 30 Oct 2024 12:59:18 +0000 (07:59 -0500)
commit6e10fd50dc02d25c0ca34c372f170a558f2e360a
treea8b124130ec8a8a7df005b2dfb54bde8915ec381
parent4891b4b095aee69d6afeff9eb2f6bb67b936e0f6
libkmod: Properly skip first symbol entry

This fixes a regression introduced while converting pointer to
offset arithmetics.

The for-loop itself starts at 1 already, so reflect this with the
manually performed offset + length calculation right at the start.

Closes: https://github.com/kmod-project/kmod/issues/214
Fixes: 25ab561b ("libkmod: Use ELF offsets more often")
Reported-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/215
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c