Lines Matching refs:nbytes
846 size_t nbytes = b->flen; in moffset() local
963 o = der_offs(ms, m, nbytes); in moffset()
964 if (o == -1 || CAST(size_t, o) > nbytes) { in moffset()
968 SIZE_T_FORMAT "u", o, nbytes); in moffset()
984 if (CAST(size_t, o) > nbytes) { in moffset()
987 "u > %" SIZE_T_FORMAT "u", (size_t)o, nbytes); in moffset()
1332 const unsigned char *s, uint32_t offset, size_t nbytes, struct magic *m) in mcopy() argument
1343 if (offset > nbytes) in mcopy()
1344 offset = CAST(uint32_t, nbytes); in mcopy()
1346 ms->search.s_len = nbytes - offset; in mcopy()
1358 if (s == NULL || nbytes < offset) { in mcopy()
1372 if (bytecnt == 0 || bytecnt > nbytes - offset) in mcopy()
1373 bytecnt = nbytes - offset; in mcopy()
1404 const unsigned char *esrc = s + nbytes; in mcopy()
1412 if (offset >= nbytes) in mcopy()
1446 if (offset >= nbytes) { in mcopy()
1450 if (nbytes - offset < size) in mcopy()
1451 nbytes = nbytes - offset; in mcopy()
1453 nbytes = size; in mcopy()
1455 (void)memcpy(p, s + offset, nbytes); in mcopy()
1461 if (nbytes < sizeof(*p)) in mcopy()
1462 (void)memset(RCAST(char *, RCAST(void *, p)) + nbytes, '\0', in mcopy()
1463 sizeof(*p) - nbytes); in mcopy()
1594 const unsigned char *s, size_t nbytes, size_t o, unsigned int cont_level, in mget() argument
1624 CAST(uint32_t, offset + o), CAST(uint32_t, nbytes), m) == -1) in mget()
1631 m->type, m->flag, offset, o, nbytes, in mget()
1649 if (OFFSET_OOB(nbytes, offset + off, 1)) in mget()
1654 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1659 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1664 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1669 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1675 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1681 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1686 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1691 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1696 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1701 if (OFFSET_OOB(nbytes, offset, m->vallen)) in mget()
1715 if (OFFSET_OOB(nbytes, offset, 1)) in mget()
1721 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1727 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1733 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1740 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1750 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1759 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1765 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1771 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1777 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1783 if (OFFSET_OOB(nbytes, offset, m->vallen)) in mget()
1812 if (mcopy(ms, p, m->type, 0, s, offset, nbytes, m) == -1) in mget()
1828 if (OFFSET_OOB(nbytes, offset, 1)) in mget()
1835 if (OFFSET_OOB(nbytes, offset, 2)) in mget()
1854 if (OFFSET_OOB(nbytes, offset, 4)) in mget()
1861 if (OFFSET_OOB(nbytes, offset, 8)) in mget()
1866 if (OFFSET_OOB(nbytes, offset, 16)) in mget()
1874 if (OFFSET_OOB(nbytes, offset, m->vallen)) in mget()
1879 if (nbytes < offset) in mget()
1889 if (nbytes < offset) in mget()
1898 bb.flen = nbytes - offset; in mget()
1936 if (nbytes < offset) in mget()