pixee / codemodder-python

Python implementation of the Codemodder framework
GNU Affero General Public License v3.0
38 stars 10 forks source link

Update semgrep requirement from <1.96,>=1.95 to >=1.95,<1.97 #912

Closed dependabot[bot] closed 2 weeks ago

dependabot[bot] commented 2 weeks ago

Updates the requirements on semgrep to permit the latest version.

Release notes

Sourced from semgrep's releases.

Release v1.96.0

1.96.0 - 2024-11-07

Added

  • The pro engine now handles duplicate function names in C. When duplicate functions are found, we assume that any of the duplicated functions could be called. For example, if the function foo is defined in two different files, taint errors will be reported for both instances:

    // "a/test.h"
    void foo(int x) {
        //deepruleid: dup-symbols
        sink(x);
    }
    

    // "b/test.h"
    void foo(int x) {
    //deepruleid: dup-symbols
    sink(x);
    }

    // "main.c"
    #ifdef HEADER_A
    #include "a/test.h"
    #else
    #include "b/test.h"
    #endif

    int main() {
    int x = source();
    foo(x);
    }

    
    
    </code></pre>
    </li>
    </ul>
    <h3>Changed</h3>
    <ul>
    <li>Reduced memory allocations while processing nosemgrep comments, improving memory use and time for scans with a large number of findings. (nosem-mem)</li>
    </ul>
    <h3>Fixed</h3>
    <ul>
    <li>Optimized taint-mode (only in Pro) to scale better when there is a large number
    of matches of sources/propagators/sanitizers/sinks within a function. (flow-83)</li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Changelog</summary>
    
    <p><em>Sourced from <a href="https://github.com/semgrep/semgrep/blob/develop/CHANGELOG.md">semgrep's changelog</a>.</em></p>
    <blockquote>
    <h2><a href="https://github.com/returntocorp/semgrep/releases/tag/v1.96.0">1.96.0</a> - 2024-11-07</h2>
    <h3>Added</h3>
    <ul>
    <li>
    <p>The pro engine now handles duplicate function names in C. When duplicate
    functions are found, we assume that any of the duplicated functions could be
    called. For example, if the function <code>foo</code> is defined in two different files,
    taint errors will be reported for both instances:</p>
    <pre><code>// &quot;a/test.h&quot;
    void foo(int x) {
        //deepruleid: dup-symbols
        sink(x);
    }
    
    // &quot;b/test.h&quot;
    void foo(int x) {
        //deepruleid: dup-symbols
        sink(x);
    }
    
    // &quot;main.c&quot;
    #ifdef HEADER_A
        #include &quot;a/test.h&quot;
    #else
        #include &quot;b/test.h&quot;
    #endif
    
    int main() {
        int x = source();
        foo(x);
    }
    ``` (code-7654)
    
    </code></pre>
    </li>
    </ul>
    <h3>Changed</h3>
    <ul>
    <li>Reduced memory allocations while processing nosemgrep comments, improving memory use and time for scans with a large number of findings. (nosem-mem)</li>
    </ul>
    <h3>Fixed</h3>
    <ul>
    <li>Optimized taint-mode (only in Pro) to scale better when there is a large number
    of matches of sources/propagators/sanitizers/sinks within a function. (flow-83)</li>
    <li>Fixed a bug in the supply chain scanner's gradle lockfile parser. Previously, semgrep would fail to parse</li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    
    <ul>
    <li><a href="https://github.com/semgrep/semgrep/commit/e743e2d243c83e6ba20e8f2096569f7383c00239"><code>e743e2d</code></a> chore: release version 1.96.0</li>
    <li><a href="https://github.com/semgrep/semgrep/commit/497836cd643b7222a475296858c67841be605d74"><code>497836c</code></a><code>semgrep/semgrep-proprietary#2577</code></li>
    <li><a href="https://github.com/semgrep/semgrep/commit/c9686ca8ab9fcabf93267dd5cfe9c5525d5cf6c6"><code>c9686ca</code></a><code>semgrep/semgrep-proprietary#2574</code></li>
    <li><a href="https://github.com/semgrep/semgrep/commit/6a001bc5842955c66ae0f136d68a009868dbadef"><code>6a001bc</code></a> Add test for updating PATH to scripts directory (semgrep/semgrep-proprietary#...</li>
    <li><a href="https://github.com/semgrep/semgrep/commit/71f1556517c7d770ce6491f873e4fa1d53c2111d"><code>71f1556</code></a> refactor: move is_logged_in_weak() to Semgrep_login.ml (semgrep/semgrep-propr...</li>
    <li><a href="https://github.com/semgrep/semgrep/commit/298e2dfc9276c324e9b24eb849c98ed4ca41ded5"><code>298e2df</code></a> pro: tainting: Improve time complexity of taint spec predicates (semgrep/semg...</li>
    <li><a href="https://github.com/semgrep/semgrep/commit/5b06af334a09ac77e5f98f19dcc866eaf8e3eb8d"><code>5b06af3</code></a> Switching to osemgrep for the gitlab-xxx output format (semgrep/semgrep-propr...</li>
    <li><a href="https://github.com/semgrep/semgrep/commit/913b96e0b13c25ff2269e3ecd27e56c0af5dab3e"><code>913b96e</code></a><code>semgrep/semgrep-proprietary#2570</code></li>
    <li><a href="https://github.com/semgrep/semgrep/commit/26c0b1b64e5d46e57b9b567358d412f58417a093"><code>26c0b1b</code></a><code>semgrep/semgrep-proprietary#2548</code></li>
    <li><a href="https://github.com/semgrep/semgrep/commit/07ff4374d20d34f660f163da4ce19fc55972ff9e"><code>07ff437</code></a> Update PATH from entrypoint parent directory to scripts directory (semgrep/se...</li>
    <li>Additional commits viewable in <a href="https://github.com/returntocorp/semgrep/compare/v1.95.0...v1.96.0">compare view</a></li>
    </ul>
    </details>
    
    <br />
    
    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
sonarcloud[bot] commented 2 weeks ago
dependabot[bot] commented 2 weeks ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.