Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ig_glob_match(): '*' (across '/'), '\' escaping, everything else literal, optional ASCII case folding. Whole-string match, binary-safe, iterative backtracking to the last star: O(plen * slen), constant stack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TASKS 1.7 (FR-5.4). Design note: PRD section 13, "1.7".
src/core/ig_glob.{h,c}:ig_glob_match(pat, plen, s, slen, flags)matches the whole string.*matches any sequence, including across/;\escapes the next character;?,[and the rest are literal.IG_GLOB_NOCASEfolds ASCII only (header names).*: O(plen·slen), constant stack, so a configured pattern cannot blow up. Binary-safe.exclude_pathsstay in the config layer (2.x).IG_SOURCESinconfig.m4.tests/unit/test_glob.c(9 cases, including 20 stars against 20 KB), fuzz targetfuzz_globchecked against a naive recursive reference.Local: unit (gcc, clang ASan/UBSan, CentOS 7), clang-tidy, clang-format, cppcheck, phpt on 7.0 NTS and 8.5 ZTS,
fuzz_glob60 s (1.46M runs), license check.🤖 Generated with Claude Code