← Commit list

b2476a0712

Daniel Stenberg
Daniel Stenberg
2026-05-13
SUCCESS Duration: 445s

Subject

tool_urlglob: check glob use before access

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_urlglob.c+1 -1
@@ -716,7 +716,7 @@ CURLcode glob_match_url(char **output, const char *filename,
while(*filename) {
CURLcode result = CURLE_OK;
struct URLPattern *pat = NULL;
- if(*filename == '#' && ISDIGIT(filename[1])) {
+ if(glob_inuse(glob) && *filename == '#' && ISDIGIT(filename[1])) {
/* a numbered glob reference */
const char *ptr = filename++;
curl_off_t num;