curl-curl/tests/data/test746
Daniel Stenberg 4db64a6437
tool_paramhlp: avoid integer overflow in secs2ms()
The previous approach was wrong and could lead to wrong timeout values
getting used.

Reported-by: bsr13 on hackerone
Closes #17184
2025-04-25 17:54:19 +02:00

36 lines
517 B
Plaintext

<testcase>
<info>
<keywords>
cmdline
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<name>
too large numerical value passed to -m
</name>
<command>
http://neverused.example/ -m 22222242222222222
</command>
</client>
<verify>
<errorcode>
2
</errorcode>
<stderr mode="text">
curl: option -m: expected a proper numerical parameter
%if manual
curl: try 'curl --help' or 'curl --manual' for more information
%else
curl: try 'curl --help' for more information
%endif
</stderr>
</verify>
</testcase>