Repository navigation
core: length limit and truncated flag (TASKS 1.6) - #23
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ig_limit_len() caps the inspected length (0 = no limit), ig_result_t gains truncated, and ig_detector_run() runs a detector on the prefix and records the flag. Detectors reset truncated on a reused result. 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.6 (FR-1.4). Design note: PRD section 13, "1.6".
ig_limit_len(len, max_len, &truncated):min(len, max_len),max_len = 0means no limit.ig_result_t.truncated, reset by every detector together with the fingerprint.ig_detector_run(d, s, len, max_len, res): runs a registry detector on the prefix and recordstruncated; the single entry point forinspect()(5.3) and the pipeline (phase 4).limit_exceededevent and blocking policy come in 4.6.tests/unit/test_limit.c(7 cases).Local: unit (gcc, clang ASan/UBSan, CentOS 7), clang-tidy, clang-format, cppcheck, phpt on 7.0 NTS and 8.5 ZTS, license check.
🤖 Generated with Claude Code