mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
f15a88f2b2
The new multiply() function detects range value overflows. 32bit machines will overflow on a 32bit boundary while 64bit hosts support ranges up to the full 64 bit range. Added test 1236 to verify. Bug: http://curl.haxx.se/bug/view.cgi?id=1267 Reported-by: Will Dietz
34 lines
495 B
Plaintext
34 lines
495 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
globbing
|
|
FAILURE
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<name>
|
|
[] globbing overflowing the range counter
|
|
</name>
|
|
# 2^62 == 4611686018427387904
|
|
<command>
|
|
"%HOSTIP:%HTTPPORT/1234[0-1]{" "%HOSTIP:%HTTPPORT/[1-4611686018427387904][1-4611686018427387904]"
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# 3 == CURLE_URL_MALFORMAT
|
|
<errorcode>
|
|
3
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|