when i run coverity scan on python code (static code analysis), REVERSE_INULL and FORWARD_NULL error are detected. can anyone tell what is difference between REVERSE_INULL and FORWARD_NULL ? why these error are detected.
what is difference betwen REVERSE_INULL and FORWARD_NULL error in coverity scan(static code analysis)?
4.4k Views Asked by sneha patil At
1
There are 1 best solutions below
Related Questions in COVERITY
- making android analyze with coverity sast tool
- Suppressing Coverity false positive intentional defects on Java code
- why Coverity scan tells the code " $data ?? [] " is logically dead code?
- Coverity - MessageHandler/HttpClient leak issue
- ASSERT implementation for Coverity test?
- YAML Coverity Configuration for C custom compiler not analyzing C files
- cov-analyze with list of checkers
- ERROR while coverity scan : No snapshot in stream has analysis summaries
- Failed to upload file to Coverity for analysis
- Fix misra 14.4 violation in macro function
- Coverity Eclipse Plugin fails during test connection
- Performing Coverity CLI Scan
- using coverity 2019.03
- How to fix Out-of-bounds access (OVERRUN) error
- Synopsis coverity still return Filesystem path, filename, or URI manipulation in java dispite making the recommended fix
Related Questions in COVERITY-PREVENT
- New Coverity user, scan failing with "last build status: failed"
- Coverity Scan for JS
- how do i fix this overrun?
- Coverity analysis shows error with const type. How to resolve this?
- How can I handle the below coverity scan issue Parameter docId receives the tainted data (taint_path_param)
- Coverity issue: noescape: Resource dataview is not closed or saved in Table.get
- Avoid TOCTOU (time-of-check, time-of-use) race condition between stat and rename
- what is difference betwen REVERSE_INULL and FORWARD_NULL error in coverity scan(static code analysis)?
- How to change STACK_USE value in coverity tool for C++?
- Coverity: PARSE ERROR
- Tainted string message from Coverity using getenv
- Coverity integration issues with Jenkins
- Coverity static analysis for C programs
- Coverity SA - excluding boost, stlport errors
- How to Initialise an instance of GUITHREADINFO
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
REVERSE_INULLmeans that you have a dereference followed by a null-type check.In pseudo code
The fix would be to put the null-type check before the dereference.
FORWARD_NULLis simply where there is a path for a null-valued variable to be dereferenced. Another pseudo-code exampleHere you have to ensure that the null-ness is always handled.
So ultimately I'd say that
REVERSE_INULLdoes the same null dereference checking asFORWARD_NULLbut that it additionally detects a check after the dereference.(standard disclaimer - I used to work for Synopsys, but not the division producing Coverity).