1
0
mirror of https://github.com/dynup/kpatch synced 2025-03-21 18:36:44 +00:00

Merge pull request from sm00th/oorr-comparison-fix

Fix false-positives in kpatch_check_relocations
This commit is contained in:
Joe Lawrence 2018-04-12 13:44:23 -04:00 committed by GitHub
commit 2a53a96ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1935,7 +1935,7 @@ static void kpatch_check_relocations(struct kpatch_elf *kelf)
list_for_each_entry(rela, &sec->relas, list) {
if (rela->sym->sec) {
sdata = rela->sym->sec->data;
if (rela->addend > sdata->d_size) {
if (rela->addend > (int)sdata->d_size) {
ERROR("out-of-range relocation %s+%x in %s", rela->sym->sec->name,
rela->addend, sec->name);
}