Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153809834
D26895.id78563.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
D26895.id78563.diff
View Options
Index: sys/ddb/db_sym.c
===================================================================
--- sys/ddb/db_sym.c
+++ sys/ddb/db_sym.c
@@ -371,8 +371,15 @@
unsigned int diff;
size_t newdiff;
int i;
- c_db_sym_t ret = C_DB_SYM_NULL, sym;
+ c_db_sym_t ret, sym;
+ /* Prevent pollution from bogus symbols. */
+ if (val < PAGE_SIZE) {
+ *offp = 0;
+ return (C_DB_SYM_NULL);
+ }
+
+ ret = C_DB_SYM_NULL;
newdiff = diff = val;
for (i = 0; i < db_nsymtab; i++) {
sym = X_db_search_symbol(&db_symtabs[i], val, strategy, &newdiff);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 24, 10:37 PM (9 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32095114
Default Alt Text
D26895.id78563.diff (544 B)
Attached To
Mode
D26895: db_search_symbol: prevent pollution from bogus symbols
Attached
Detach File
Event Timeline
Log In to Comment