Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bufferoverrun Analysis - small fixes and improvements #1736

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Feb 24, 2023

  1. [inferbo] Fix an ignored case when the upper bounds of offset is +oo,…

    … and the upper bound of size is smaller than +oo
    
    Summary:
    The buffer overrun checker misses to handle the case when the upper bound of offset is +oo, and the upper bound of array size is less than +oo, which will causes false negative in some test cases.
    
    For instance, for the following program,
    
    ```
    int a[1];
    for(int i=0; a[i]; i++) {}
    ```
    
    The variable `i` will eventually be equal 1 and causes an overrun error within the loop statement. However, this error was missed by buffer overrun checker.
    sjxer723 committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    31ab607 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd0a4e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    347d391 View commit details
    Browse the repository at this point in the history