/
githubmirror
/
curl
Обзор
Документация
Войти
/
githubmirror
/
curl
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/data/test2093
50 строк
789 B
Daniel Stenberg
tool_cb_prg: avoid integer overflows
16 июл 2026, 09:52
Не верифицирован
16 июл 2026, 09:52
4176aba
Код
Авторство
О чём код?
<?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>