Changeset 5295 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Oct 15, 2007 1:17:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tftp.c
r1076 r5295 314 314 /* do sanity checks on the filename */ 315 315 316 if ( (spt->filename[0] != '/')316 if ( !strncmp(spt->filename, "../", 3) 317 317 || (spt->filename[strlen((const char *)spt->filename) - 1] == '/') 318 318 || strstr((char *)spt->filename, "/../")) {
Note:
See TracChangeset
for help on using the changeset viewer.