Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162303893
D57977.id181353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D57977.id181353.diff
View Options
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -14288,8 +14288,9 @@
return (-1);
}
- if (sec->dofs_type == DOF_SECT_STRTAB && *((char *)daddr +
- sec->dofs_offset + sec->dofs_size - 1) != '\0') {
+ if (sec->dofs_type == DOF_SECT_STRTAB && (sec->dofs_size == 0 ||
+ *((char *)daddr + sec->dofs_offset + sec->dofs_size - 1) !=
+ '\0')) {
dtrace_dof_error(dof, "non-terminating string table");
return (-1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 12, 9:11 PM (14 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34577704
Default Alt Text
D57977.id181353.diff (651 B)
Attached To
Mode
D57977: dtrace: Improve DOF string table validation
Attached
Detach File
Event Timeline
Log In to Comment