Lines Matching defs:maxbuf
132 name_interpret(const u_char *in, const u_char *maxbuf, char *out)
137 if (in >= maxbuf)
149 if (in + 1 >= maxbuf)
172 name_ptr(const u_char *buf, int ofs, const u_char *maxbuf)
178 if (p >= maxbuf)
189 if ((p + 1) >= maxbuf)
197 if (p >= maxbuf)
211 name_extract(const u_char *buf, int ofs, const u_char *maxbuf, char *name)
213 const u_char *p = name_ptr(buf, ofs, maxbuf);
217 return(name_interpret(p, maxbuf, name));
225 name_len(const unsigned char *s, const unsigned char *maxbuf)
230 if (s >= maxbuf)
237 if (s >= maxbuf)
432 smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf,
438 while (*fmt && buf<maxbuf) {
636 return maxbuf; /* give up */
700 maxbuf, nbuf);
703 len = name_len(buf, maxbuf);
779 if (buf >= maxbuf && *fmt)
791 smb_fdata(const u_char *buf, const char *fmt, const u_char *maxbuf,
802 while (buf < maxbuf) {
805 buf2 = smb_fdata(buf, fmt, maxbuf, unicodestr);
817 if (buf >= maxbuf)
823 buf = maxbuf;
833 if (buf >= maxbuf)
844 buf = smb_fdata1(buf, s, maxbuf, unicodestr);
856 if (!depth && buf < maxbuf) {
857 size_t len = PTR_DIFF(maxbuf, buf);