]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Fix content length overflow on 32bit
authorAndrey Volk <andywolk@gmail.com>
Mon, 15 Jun 2020 11:13:39 +0000 (15:13 +0400)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:18 +0000 (22:00 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index 0e350bf16f0a8a8d709d77f0e2ba19e8a86986c6..5d930b4df2438db4ba1e3428c5651905531605cd 100644 (file)
@@ -1649,7 +1649,7 @@ new_req:
                goto done;
        }
 
-       if (request->content_length && request->content_length > 5l * 1024 * 1024 * 1024 - 1) {
+       if (request->content_length && request->content_length > INT32_MAX) {
                char *data = "HTTP/1.1 413 Request Entity Too Large\r\n"
                        "Content-Length: 0\r\n\r\n";
                kws_raw_write(jsock->ws, data, strlen(data));