Unique quarantine generations use: * * .db.corrupt.<16-hex-token> * * Only the main DB generation proves recoverability. SQLite sidecars and * reservation artifacts (for example, -wal, -shm, or .pending) must not make * the primary survival assertion pass on their own. */
| 105 | * reservation artifacts (for example, -wal, -shm, or .pending) must not make |
| 106 | * the primary survival assertion pass on their own. */ |
| 107 | static int is_hex_digit(char ch) { |
| 108 | return (ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F'); |
| 109 | } |
| 110 | |
| 111 | static int is_unique_corrupt_main_name(const char *name) { |
| 112 | char prefix[CBM_DIRENT_NAME_MAX]; |
no outgoing calls
no test coverage detected