mirror of
https://github.com/dynup/kpatch
synced 2025-03-21 18:36:44 +00:00
Merge pull request #826 from sm00th/oorr-comparison-fix
Fix false-positives in kpatch_check_relocations
This commit is contained in:
commit
2a53a96ade
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user