mirror of
https://github.com/dynup/kpatch
synced 2024-12-26 07:12:03 +00:00
create-diff-object: fix a potential overflow for rela type
rela.type should be unsigned int instead of unsighed char. /usr/include/gelf.h:#define GELF_R_TYPE(info) ELF64_R_TYPE (info) /usr/include/elf.h:#define ELF64_R_TYPE(i) ((i) & 0xffffffff) Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
This commit is contained in:
parent
97c2bea0c0
commit
6b446cba67
@ -133,7 +133,7 @@ struct rela {
|
||||
struct list_head list;
|
||||
GElf_Rela rela;
|
||||
struct symbol *sym;
|
||||
unsigned char type;
|
||||
unsigned int type;
|
||||
int addend;
|
||||
int offset;
|
||||
char *string;
|
||||
|
Loading…
Reference in New Issue
Block a user