Bugzilla – Attachment #403535: proposed overflow patch for bug #336658
p += 2; /* eat type and length */
}
if (dLen > buf_size)
dLen = buf_size;
memcpy(buf, p, dLen);
*bytes_read = dLen;
*type = dt;