cnescatlab / cnescatlab/i-CodeCNES

False positives on COM.FLOW.FilePath erros

Open
#177 1 comment 0 reactions 0 assignees View on GitHub
false positive shell to analyse
Dominant language
Fortran
Stars
63
Forks
18
PR merge metrics
No merged PRs in 30d

Description

### Expected behavior
We don't expect a COM.FLOW.FilePath error when :
- using basename to get the name of a script/file
- setting the variable PATH
- redirecting the stderr of a command in /dev/null
- using the result of a command (id or echo) to set a variable
- using a sql request
- using a loop on a file (done < $filein)

### Actual behavior
For the following parts of script, a COM.FLOW.FilePath error is raised :
![image](https://user-images.githubusercontent.com/59566012/71889428-688e9a00-3142-11ea-8417-a084b03b0b4b.png)
![image](https://user-images.githubusercontent.com/59566012/71889432-6b898a80-3142-11ea-984d-894147dbd91d.png)
![image](https://user-images.githubusercontent.com/59566012/71889436-6e847b00-3142-11ea-8b7d-2313f765aca1.png)
![image](https://user-images.githubusercontent.com/59566012/71889446-70e6d500-3142-11ea-86f9-f6ca85b57c38.png)
![image](https://user-images.githubusercontent.com/59566012/71889449-73492f00-3142-11ea-8067-1f837eb7ca2b.png)
![image](https://user-images.githubusercontent.com/59566012/71889454-77754c80-3142-11ea-8161-0e683a9807aa.png)
![image](https://user-images.githubusercontent.com/59566012/71889467-7a703d00-3142-11ea-9a38-e7a356a7c154.png)

Below the iCode results :
![image](https://user-images.githubusercontent.com/59566012/71889493-86f49580-3142-11ea-992e-adf83bbc44c9.png)
![image](https://user-images.githubusercontent.com/59566012/71889719-0c784580-3143-11ea-8c83-48254958ddac.png)
![image](https://user-images.githubusercontent.com/59566012/71889730-113cf980-3143-11ea-9f5a-924bba8d179c.png)

### Steps to reproduce behavior

### Detection version
3.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.