Fossil SCM
In import --svn, refuse a node whose path within its branch is not a simple pathname, such as one with a "." or ".." component or a doubled slash. The check-in holding such a file could not be parsed and its revision was left out without a message.
Commit
f36b1348e0d6c59de6bd23d68627a420b8515f5873a0c80a417617786528de37
Parent
8ee2f003368aa5f…
1 file changed
+3
+3
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1538,10 +1538,13 @@ | ||
| 1538 | 1538 | svn_free_rec(&rec); |
| 1539 | 1539 | continue; |
| 1540 | 1540 | } |
| 1541 | 1541 | if( zAction==0 ){ |
| 1542 | 1542 | fossil_fatal("svn-dump data format broken"); |
| 1543 | + } | |
| 1544 | + if( zFile[0]!=0 && !file_is_simple_pathname_nonstrict(zFile) ){ | |
| 1545 | + fossil_fatal("svn path is not a valid file name: %s", zFile); | |
| 1543 | 1546 | } |
| 1544 | 1547 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1545 | 1548 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1546 | 1549 | } |
| 1547 | 1550 | if( strncmp(zAction, "delete", 6)==0 |
| 1548 | 1551 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1538,10 +1538,13 @@ | |
| 1538 | svn_free_rec(&rec); |
| 1539 | continue; |
| 1540 | } |
| 1541 | if( zAction==0 ){ |
| 1542 | fossil_fatal("svn-dump data format broken"); |
| 1543 | } |
| 1544 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1545 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1546 | } |
| 1547 | if( strncmp(zAction, "delete", 6)==0 |
| 1548 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1538,10 +1538,13 @@ | |
| 1538 | svn_free_rec(&rec); |
| 1539 | continue; |
| 1540 | } |
| 1541 | if( zAction==0 ){ |
| 1542 | fossil_fatal("svn-dump data format broken"); |
| 1543 | } |
| 1544 | if( zFile[0]!=0 && !file_is_simple_pathname_nonstrict(zFile) ){ |
| 1545 | fossil_fatal("svn path is not a valid file name: %s", zFile); |
| 1546 | } |
| 1547 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1548 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1549 | } |
| 1550 | if( strncmp(zAction, "delete", 6)==0 |
| 1551 |