← Commit list

9c8c03898

Denis Vlasenko
Denis Vlasenko
2008-03-17
FAILED Duration: 19s

Subject

httpd: small fixlet for POST upload - skip whitespace between "Content-length:" and number

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+1 -1
@@ -1977,7 +1977,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
&& prequest != request_HEAD
#endif
) {
- tptr = iobuf + sizeof("Content-length:") - 1;
+ tptr = skip_whitespace(iobuf + sizeof("Content-length:") - 1);
if (!tptr[0])
send_headers_and_exit(HTTP_BAD_REQUEST);
/* not using strtoul: it ignores leading minus! */