| 428 | } |
| 429 | |
| 430 | static char *application_text_copy(const uint8_t *bytes, uint32_t length) { |
| 431 | if (!bytes || length == 0 || memchr(bytes, '\0', length) != NULL) { |
| 432 | return NULL; |
| 433 | } |
| 434 | char *copy = malloc((size_t)length + 1U); |
| 435 | if (copy) { |
| 436 | memcpy(copy, bytes, length); |
| 437 | copy[length] = '\0'; |
| 438 | } |
| 439 | return copy; |
| 440 | } |
| 441 | |
| 442 | static bool application_regular_db_exists(const char *project) { |
| 443 | const char *cache = cbm_resolve_cache_dir(); |
no outgoing calls
no test coverage detected