Displaying 3 results from an estimated 3 matches for "uprintf".
Did you mean:
sprintf
2020 Nov 02
2
[llvm-mc] FreeBSD kernel module performance impact when upgrading clang
....o
skeleton.o: file format elf64-x86-64
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
0000000000000019 R_X86_64_32S .rodata.str1.1+0x0000000000000015
0000000000000024 R_X86_64_32S .rodata.str1.1+0x000000000000002b
000000000000002b R_X86_64_PC32 uprintf-0x0000000000000004
[...]
clang10:
$ objdump -r skeleton.o
skeleton.o: file format elf64-x86-64
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
0000000000000017 R_X86_64_32S .rodata.str1.1+0x000000000000002b
0000000000000020 R_X86_64_32S .rodata.st...
2020 Nov 05
0
[EXTERNAL] [llvm-mc] FreeBSD kernel module performance impact when upgrading clang
...t;>>> OFFSET TYPE VALUE
>>>> 0000000000000019 R_X86_64_32S .rodata.str1.1+0x0000000000000015
>>>> 0000000000000024 R_X86_64_32S .rodata.str1.1+0x000000000000002b
>>>> 000000000000002b R_X86_64_PC32 uprintf-0x0000000000000004
>>>> [...]
>>>>
>>>> clang10:
>>>>
>>>> $ objdump -r skeleton.o
>>>>
>>>> skeleton.o: file format elf64-x86-64
>>>>
>>>> RELOCATION RECORDS FOR...
2000 Aug 28
0
FreeBSD Security Advisory: FreeBSD-SA-00:41.elf
...d of the file object and into the ether.
+ *
+ * While I'm here, might as well check for something else that
+ * is invalid: filsz cannot be greater than memsz.
+ */
+ if ((off_t)filsz + offset > object->un_pager.vnp.vnp_size ||
+ filsz > memsz) {
+ uprintf("elf_load_section: truncated ELF file\n");
+ return (ENOEXEC);
+ }
+
map_addr = trunc_page((vm_offset_t)vmaddr);
file_addr = trunc_page(offset);
@@ -341,6 +356,12 @@
}
error = exec_map_first_page(imgp);
+ /*
+ * Also make certa...