| 100 | } text_managed_region_t; |
| 101 | |
| 102 | static void text_buffer_dispose(text_buffer_t *buffer) { |
| 103 | if (!buffer) { |
| 104 | return; |
| 105 | } |
| 106 | free(buffer->data); |
| 107 | buffer->data = NULL; |
| 108 | buffer->len = 0U; |
| 109 | buffer->capacity = 0U; |
| 110 | } |
| 111 | |
| 112 | static int text_buffer_reserve(text_buffer_t *buffer, size_t additional) { |
| 113 | if (!buffer || additional > SIZE_MAX - buffer->len - 1U) { |
no outgoing calls
no test coverage detected