| 11355 | } |
| 11356 | |
| 11357 | int cbm_adr_check_structure(const char *content, char *errbuf, int errbuf_size) { |
| 11358 | if (content && adr_has_unterminated_fence(content)) { |
| 11359 | snprintf(errbuf, (size_t)errbuf_size, |
| 11360 | "the stored ADR leaves a code fence open, so its section boundaries are " |
| 11361 | "ambiguous and a section write could splice into a code sample; repair it " |
| 11362 | "with mode='update'"); |
| 11363 | return CBM_STORE_ERR; |
| 11364 | } |
| 11365 | return CBM_STORE_OK; |
| 11366 | } |
| 11367 | |
| 11368 | typedef struct { |
| 11369 | const char *name; |
no test coverage detected