curl-users
globbing changes
Date: Mon, 19 Aug 2013 09:42:21 +0200 (CEST)
Hi friends,
Will Dietz filed no less than 4 individual bug reports recently on curl's
globbing parser and handler.
Yesterday I pushed two commits (and closed all four bug reports) with some
news in the glob handling.
The most notable change for users are probably that:
o it detects unballanced braces/brackets better
o it disallows empty lists like {}
o it detects variable overflows and bad uses better (like negative steps or
very large steps)
o it detects integer overflows when using insane number ranges
(like [1-1000000][[1-1000000] or similar).
o it now supports up to 100 globs. Up to, because as a simplification the
code stores all parts of the URL as entries in the glob array so it can
hold 100 "glob parts" where ordinary "fixed strings" also occupy a slot.
o it now uses 'long' internally for the ranges instead of previously having
been 'int' so on 64bit architectures curl now support insanely large
ranges.
The general idea is that all of this was made 100% backwards compatible so
that no users will notice any side-effects but there's of course a risk that I
failed with that. Please keep your eyes a little extra open if you use
globbing with a curl version based on git f15a88f2b25ee44d or later.
Enjoy!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-08-19