Lines Matching refs:nbytes
853 size_t nbytes = b->flen; in moffset() local
962 o = der_offs(ms, m, nbytes); in moffset()
963 if (o == -1 || CAST(size_t, o) > nbytes) { in moffset()
967 SIZE_T_FORMAT "u", o, nbytes); in moffset()
983 if (CAST(size_t, o) > nbytes) { in moffset()
986 "u > %" SIZE_T_FORMAT "u", (size_t)o, nbytes); in moffset()
1324 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) in mcopy() argument
1334 if (offset > nbytes) in mcopy()
1335 offset = CAST(uint32_t, nbytes); in mcopy()
1337 ms->search.s_len = nbytes - offset; in mcopy()
1349 if (s == NULL || nbytes < offset) { in mcopy()
1363 if (bytecnt == 0 || bytecnt > nbytes - offset) in mcopy()
1364 bytecnt = nbytes - offset; in mcopy()
1395 const unsigned char *esrc = s + nbytes; in mcopy()
1403 if (offset >= nbytes) in mcopy()
1434 if (offset >= nbytes) { in mcopy()
1438 if (nbytes - offset < sizeof(*p)) in mcopy()
1439 nbytes = nbytes - offset; in mcopy()
1441 nbytes = sizeof(*p); in mcopy()
1443 (void)memcpy(p, s + offset, nbytes); in mcopy()
1449 if (nbytes < sizeof(*p)) in mcopy()
1450 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1451 sizeof(*p) - nbytes); in mcopy()
1546 const unsigned char *s, size_t nbytes, size_t o, unsigned int cont_level, in mget() argument
1575 CAST(uint32_t, offset + o), CAST(uint32_t, nbytes), m) == -1) in mget()
1582 m->type, m->flag, offset, o, nbytes, in mget()
1600 if (OFFSET_OOB(nbytes, offset + off, 1)) in mget()
1605 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1610 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1615 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1620 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1626 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1632 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1637 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1642 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1647 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1661 if (OFFSET_OOB(nbytes, offset, 1)) in mget()
1666 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1671 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1676 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1682 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1691 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1699 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1704 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1709 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1714 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1741 if (mcopy(ms, p, m->type, 0, s, offset, nbytes, m) == -1) in mget()
1757 if (OFFSET_OOB(nbytes, offset, 1)) in mget()
1764 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1783 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1790 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1795 if (OFFSET_OOB(nbytes, offset, 16)) in mget()
1802 if (OFFSET_OOB(nbytes, offset, m->vallen)) in mget()
1807 if (nbytes < offset) in mget()
1817 if (nbytes < offset) in mget()
1826 bb.flen = nbytes - offset; in mget()
1852 if (nbytes < offset) in mget()