Overview
| Comment: | Fix error in constraining to range |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c89b6aa7811f63d0e176d4d53a1e48f9 |
| User & Date: | rkeene on 2019-10-10 00:40:19.438 |
| Other Links: | manifest | tags |
Context
|
2019-10-10
| ||
| 00:40 | Improved and parameterized perfect hash function generator check-in: f615eecc64 user: rkeene tags: trunk | |
| 00:40 | Fix error in constraining to range check-in: c89b6aa781 user: rkeene tags: trunk | |
|
2019-10-09
| ||
| 20:37 | Switch to perfect hashing for lookups, to save space check-in: a719156faf user: rkeene tags: trunk | |
Changes
Modified lib/xvfs/xvfs.c.rvt
from [8a68b99ecb]
to [6833d26c3e].
| ︙ | ︙ | |||
65 66 67 68 69 70 71 |
if (path == NULL) {
return(XVFS_NAME_LOOKUP_ERROR);
}
pathLen = strlen(path);
pathIndex = <?= [::xvfs::generatePerfectHashFunctionCall "path" pathLen XVFS_NAME_LOOKUP_ERROR $::xvfs::outputFiles] ?>;
| | | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
if (path == NULL) {
return(XVFS_NAME_LOOKUP_ERROR);
}
pathLen = strlen(path);
pathIndex = <?= [::xvfs::generatePerfectHashFunctionCall "path" pathLen XVFS_NAME_LOOKUP_ERROR $::xvfs::outputFiles] ?>;
if (pathIndex < 0 || pathIndex >= <?= [llength $::xvfs::outputFiles] ?>) {
pathIndex = XVFS_NAME_LOOKUP_ERROR;
}
if (pathIndex != XVFS_NAME_LOOKUP_ERROR) {
if (strcmp(path, xvfs_<?= $::xvfs::fsName ?>_data[pathIndex].name) == 0) {
return(pathIndex);
}
|
| ︙ | ︙ |