(CVE-2025-71031) Denial of Service in Melon C library
Summary
Details
MLN_FUNC(static inline, int, mln_http_line_length, \
(mln_http_t *http, mln_chain_t *in, mln_size_t *len), \
(http, in, len), \
{
mln_buf_t *b;
mln_u8ptr_t p, end;
mln_size_t length = 0;
while (in != NULL) {
b = in->buf;
if (b == NULL || b->in_file || mln_buf_left_size(b) <= 0) {
in = in->next;
continue;
}
for (p = b->left_pos, end = b->last; p < end; ++p) {
if (*p == (mln_u8_t)'\n') break;
++length;
}
if (p >= end) {
in = in->next;
continue;
}
break;
}
if (in == NULL) return M_HTTP_RET_OK;
*len = length;
return M_HTTP_RET_DONE;
})Steps to reproduce
Proof of Concept
Last updated