| 1479 | } |
| 1480 | |
| 1481 | pdf_val_t *pdf_resolve(pdf_doc_t *d, pdf_val_t *v) { |
| 1482 | int depth = 0; |
| 1483 | while (v && v->kind == PV_REF) { |
| 1484 | v = pdf_get(d, v->ref_num); |
| 1485 | if (++depth > PDF_MAX_RESOLVE) { |
| 1486 | return NULL; |
| 1487 | } |
| 1488 | } |
| 1489 | return v; |
| 1490 | } |
| 1491 | |
| 1492 | static pdf_objstm_t *objstm_open(pdf_doc_t *d, int64_t stmnum) { |
| 1493 | pdf_xent_t *e = xent(d, stmnum); |
no test coverage detected