| 2450 | } |
| 2451 | |
| 2452 | static char *runtime_string_copy_bounded(const char *value, size_t capacity) { |
| 2453 | size_t length = 0; |
| 2454 | if (!runtime_bounded_length(value, capacity, &length)) { |
| 2455 | return NULL; |
| 2456 | } |
| 2457 | char *copy = malloc(length + 1); |
| 2458 | if (copy) { |
| 2459 | memcpy(copy, value, length + 1); |
| 2460 | } |
| 2461 | return copy; |
| 2462 | } |
| 2463 | |
| 2464 | static bool runtime_application_callbacks_valid( |
| 2465 | const cbm_daemon_runtime_application_callbacks_t *application) { |
no test coverage detected