The following invocations cause integer overflows in curl resulting in curl doing nothing and immediately returning success (instead of performing the desired operation or reporting an error).
Overflow within single range expression:
$ curl "http://1/[0-2147483647]" $ echo $? 0
Overflow by combining range expressions:
$ curl "http://1/[1-65536][1-32768]" $ echo $? 0
This is due to an integer overflow while computing the total number of URL's at various locations in src/tool_urlglob.c.
$ curl "http://1/[1-65536][1-65537]"
performs the equivalent of
$ curl "http://1/1[1-65536]"
As it only goes through the first 65536 URL's instead of the total 65536*65537 URL's.
Thanks and confirmed. I have a fix for this pending together with the other globbing fixes.
Fixed in git, commit f15a88f2b25ee