| 318 | } |
| 319 | |
| 320 | static bool cr_py_string(cr_ctx_t *c, const char **field) { |
| 321 | if (!*field) |
| 322 | return true; |
| 323 | if (c->phase == CR_COUNT && c->refs == SIZE_MAX) { |
| 324 | c->failed = true; |
| 325 | return false; |
| 326 | } |
| 327 | if (c->phase == CR_MEASURE && !cr_py_size(c, strlen(*field) + 1)) |
| 328 | return false; |
| 329 | cr_str(c, field); |
| 330 | return !c->failed; |
| 331 | } |
| 332 | |
| 333 | static void cr_walk_py_namespace(cr_ctx_t *c, CBMPyNamespaceFacts *facts) { |
| 334 | if (!cr_py_size(c, (size_t)facts->count * sizeof(*facts->items))) |
no test coverage detected