Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107150586
D43124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
773 B
Referenced Files
None
Subscribers
None
D43124.diff
View Options
diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c
--- a/usr.sbin/kldxref/ef.c
+++ b/usr.sbin/kldxref/ef.c
@@ -512,8 +512,8 @@
ofs = ef_get_offset(ef, address);
if (ofs == 0) {
if (ef->ef_verbose)
- warnx("ef_seg_read_rel(%s): zero offset (%jx:%ju)",
- ef->ef_name, (uintmax_t)address, (uintmax_t)ofs);
+ warnx("ef_seg_read_rel(%s): bad address (%jx)",
+ ef->ef_name, (uintmax_t)address);
return (EFAULT);
}
error = elf_read_raw_data(ef->ef_efile, ofs, dest, len);
@@ -542,7 +542,7 @@
int error;
ofs = ef_get_offset(ef, address);
- if (ofs == 0 || ofs == (GElf_Off)-1) {
+ if (ofs == 0) {
if (ef->ef_verbose)
warnx("ef_seg_read_string(%s): bad offset (%jx:%ju)",
ef->ef_name, (uintmax_t)address, (uintmax_t)ofs);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 9:40 PM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15758077
Default Alt Text
D43124.diff (773 B)
Attached To
Mode
D43124: kldxref: Tidy error handling for invalid addresses
Attached
Detach File
Event Timeline
Log In to Comment