search for: _cr_offset

Displaying 2 results from an estimated 2 matches for "_cr_offset".

Did you mean: __offset
2025 Apr 21
0
[PATCH] Permit zero-sized ELF program sections
...egment of zero size at vaddr 0x%08x at 0x%08x.\n" + cr_pht->p_vaddr, + (Elf32_Addr)module_get_absolute(cr_pht->p_vaddr, module)); + continue; + } + if (cr_pht->p_type == PT_LOAD) { // Copy the segment at its destination if (cr_pht->p_offset < module->u.l._cr_offset) { @@ -120,6 +128,16 @@ int load_segments(struct elf_module *mod // headers Elf32_Off aux_off = module->u.l._cr_offset - cr_pht->p_offset; + if (cr_pht->p_filesz <= aux_off) + { + DBG_PRINT("Skipping segment of size 0x%08x at vaddr 0x%08x at 0x%08x, " +...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...dr) { int i; int res = 0; - void *pht = NULL; + char *pht = NULL; Elf32_Phdr *cr_pht; Elf32_Addr min_addr = 0x00000000; // Min. ELF vaddr @@ -136,8 +137,8 @@ static int load_segments(struct elf_module *module, Elf32_Ehdr *elf_hdr) { // headers Elf32_Off aux_off = module->u.l._cr_offset - cr_pht->p_offset; - if (image_read(module_get_absolute(cr_pht->p_vaddr, module) + aux_off, - cr_pht->p_filesz - aux_off, module) < 0) { + if (image_read((char *)module_get_absolute(cr_pht->p_vaddr, module) + aux_off, + cr_pht->p_filesz - aux_off, module)...