]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_urlglob: fix build for old gcc versions
authorJay Satiro <raysatiro@yahoo.com>
Sun, 15 Oct 2023 02:28:17 +0000 (22:28 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 15 Oct 2023 18:39:42 +0000 (14:39 -0400)
commit82aa0642ec77a3cf6c6c19fef47663409178f83e
treee47b39fe9bdf948d3e2d4322a6ec1f9ef7f05444
parente4de693bf6d8752696fa8f378d85fdebda7743f2
tool_urlglob: fix build for old gcc versions

- Don't use __builtin_mul_overflow for GCC 4 and earlier.

The function was added in GCC 5.

Ref: https://gcc.gnu.org/gcc-5/changes.html

Reported-by: Dan Fandrich
Fixes https://github.com/curl/curl/issues/12124
Closes https://github.com/curl/curl/pull/12128
src/tool_urlglob.c