control-flag icon indicating copy to clipboard operation
control-flag copied to clipboard

A system to flag anomalous source code expressions by learning typical expressions from training data

Results 19 control-flag issues
Sort by recently updated
recently updated
newest added

**Describe the bug** cf_file_scanner segfaults while scanning files. **Exact command to reproduce** `scripts/scan_for_anomalies.sh -d ~/projects/riscv-isa-sim -t c_lang_if_stmts_6000_gitrepos_medium.ts -o spike -l 1` Unfortunately I could not reproduce it again with exactly...

Line numbers that are printed out in a log file, for potential anomalies, are incorrect. For example output from log: ``` /var/jenkins_slave/workspace/Preboot/control-flag/thread_1.log-[TID=140515822532352] Scanning File: /var/jenkins_slave/workspace/Preboot/control-flag/sandbox/IntelUndiPkg/IceUndiFullDxe/Ice.c /var/jenkins_slave/workspace/Preboot/control-flag/thread_1.log-Level:ONE Expression:(parenthesized_expression (binary_expression ("=") (identifier)(identifier)))...

Compiled `control-flag` from commit `e7e0e448f40b631636e50b18b94c15d6f35e1283 ` I ran `scripts/scan_for_anomalies.sh` on some PHP code with your dataset. This the the output: ``` Level:TWO Expression:(parenthesized_expression (binary_expression left: (unary_op_expression (variable_name (name))) right: (unary_op_expression...

**Describe the feature you'd like** User's do not know what size the 100 top GitHub repositories will be. As many people have varying space available, it would be nice if...

enhancement

**Is your feature request related to a problem? Please describe.** There is no `requirements.txt` file, so if a user is working on the CMDLine and does not have the proper...

Thank for trying out ControlFlag. We would appreciate if you can fill out the template below for reporting a bug. **Describe the bug** Amount of threads seems to be limited...

question

Tried to check ClickHouse codebase, but it crashed. You can get ClickHouse codebase just from GitHub: ``` git clone [email protected]:ClickHouse/ClickHouse.git clickhouse scripts/scan_for_anomalies.sh -d /home/qoega/clickhouse/src -t ./c_lang_if_stmts_6000_gitrepos.ts -o /home/qoega/control-flag/out/ Training: start....

bug

**Describe the bug** When running the 100+ C code download from GitHub, some authorization request is given at progress bar %6. When given, it identifies the username and then asks...

bug

**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. **Describe the feature you'd like** A short description of the...

enhancement

**When I test, if missing Null checks happen on if (..) ,can be checked, but if (...) Outside, it can't be checked .** **Expect ControlFlag to mine and scan patterns...

enhancement