Repository navigation
[integration] validate compilation database paths after unescaping - #2328
Merged
dulmarod merged 1 commit intoNov 25, 2026
Merged
Conversation
An empty escaped filename produces no printf output. Reading a first line raised End_of_file
instead of reporting invalid compilation-database input:
```json
[{"directory":"/tmp","file":"","arguments":["clang","-c","example.c"]}]
```
Read the complete output, reject empty directory/file fields with a format error, and report failed
shell unescaping through the same diagnostic path. Keep non-string validation and valid capture.
Do not skip invalid entries or report a partially captured database as successful.
Fixes meta#1960.
## Test plan
Regression script checks raw/escaped empty, null and non-string paths, malformed escaping and
valid space-containing paths. Valid entries retain their null-dereference report. Full suite.
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.
An empty escaped filename produces no printf output. Reading a first line raised End_of_file
instead of reporting invalid compilation-database input:
[{"directory":"/tmp","file":"","arguments":["clang","-c","example.c"]}]Read the complete output, reject empty directory/file fields with a format error, and report failed
shell unescaping through the same diagnostic path. Keep non-string validation and valid capture.
Do not skip invalid entries or report a partially captured database as successful.
Fixes #1960.
Test plan
Regression script checks raw/escaped empty, null and non-string paths, malformed escaping and
valid space-containing paths. Valid entries retain their null-dereference report. Full suite.