| 41 | } |
| 42 | |
| 43 | static bool ia_path_valid(const char *file) { |
| 44 | if (!file || !*file || strlen(file) >= 1024 || file[0] == '/' || file[0] == '\\') |
| 45 | return false; |
| 46 | for (const char *p = file; *p; p++) { |
| 47 | if (*p == '\\' || *p == ':' || (unsigned char)*p < 32) |
| 48 | return false; |
| 49 | if ((p == file || p[-1] == '/') && p[0] == '.' && p[1] == '.' && (p[2] == '/' || !p[2])) |
| 50 | return false; |
| 51 | } |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | typedef struct { |
| 56 | int64_t id, edge_id; |
no outgoing calls
no test coverage detected