mirror of
https://github.com/curl/curl.git
synced 2026-08-03 06:30:34 +03:00
tool_cb_prg: avoid integer overflows
Verify in test 2093 Fixes #22316 Reported-by: xmoezzz on github Closes #22328
This commit is contained in:
parent
f2fda908f9
commit
4176aba5e4
3 changed files with 65 additions and 7 deletions
|
|
@ -252,7 +252,7 @@ test2056 test2057 test2058 test2059 test2060 test2061 test2062 test2063 \
|
|||
test2064 test2065 test2066 test2067 test2068 test2069 test2070 test2071 \
|
||||
test2072 test2073 test2074 test2075 test2076 test2077 test2078 test2079 \
|
||||
test2080 test2081 test2082 test2083 test2084 test2085 test2086 test2087 \
|
||||
test2088 test2089 test2090 test2091 test2092 \
|
||||
test2088 test2089 test2090 test2091 test2092 test2093 \
|
||||
test2100 test2101 test2102 test2103 test2104 test2105 test2106 test2107 \
|
||||
test2108 test2109 test2110 test2113 test2114 test2115 test2116 \
|
||||
\
|
||||
|
|
|
|||
50
tests/data/test2093
Normal file
50
tests/data/test2093
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="US-ASCII"?>
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
HTTP GET
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Content-Length: 9223372036854775807
|
||||
Content-Type: text/html
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<name>
|
||||
HTTP POST a few bytes with 2^63-1 bytes response
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -# -d "sending data"
|
||||
</command>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="headers" nonewline="yes">
|
||||
POST /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
Content-Length: 12
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
sending data
|
||||
</protocol>
|
||||
<errorcode>
|
||||
18
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue