-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest pfff and fix no_file_info error (#1988)
* Use latest pfff not generating NO_FILE_INFO_YET when parsing invalid C code Fixes #1925 test plan: $ /home/pad/semgrep/_build/default/cli/Main.exe -dump_ast foo.c foo.c:3:0: Lexical error: unrecognised symbol, in token rule:# Raised at file "parsing/Parse_code.ml", line 144, characters 24-27 Called from file "parsing/Parse_code.ml", line 236, characters 18-48 no more NO_FILE_INFO_YET error (which causes the python wrapper to crash). Also: $ semgrep -l c -e 'FOO' tests/OTHER/parsing_errors/foo.c ran 1 rules on 1 files: 0 findings 1 files could not be analyzed; run with --verbose for details or run with --strict to exit non-zero if any file cannot be analyzed * Use latest pfff not generating NO_FILE_INFO_YET when parsing invalid C code Fixes #1925 test plan: $ /home/pad/semgrep/_build/default/cli/Main.exe -dump_ast foo.c foo.c:3:0: Lexical error: unrecognised symbol, in token rule:# Raised at file "parsing/Parse_code.ml", line 144, characters 24-27 Called from file "parsing/Parse_code.ml", line 236, characters 18-48 no more NO_FILE_INFO_YET error (which causes the python wrapper to crash). Also: $ semgrep -l c -e 'FOO' tests/OTHER/parsing_errors/foo.c ran 1 rules on 1 files: 0 findings 1 files could not be analyzed; run with --verbose for details or run with --strict to exit non-zero if any file cannot be analyzed
- Loading branch information
Showing
6 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Submodule pfff
updated
from 5b7211 to f0b5b5
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
|
||
# this is invalid code | ||
int x = 1 |
This file contains 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