Skip to content

Conversation

@nickrolfe
Copy link
Contributor

No description provided.

Copy link
Contributor

@pavgust pavgust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@semmle-qlci semmle-qlci merged commit 282545e into github:master Aug 3, 2018
@nickrolfe nickrolfe deleted the readme-pedantry branch August 3, 2018 15:02
jbj pushed a commit that referenced this pull request Apr 11, 2019
We avoid putting a variable into SSA if its address is ever taken in a way that could allow mutation of the variable via indirection. We currently just look to see if the address is either "pointer to non-const" or "reference to non-const". However, if the address was cast to an integral type (e.g. `uintptr_t n = (uintptr_t)&x;`), we were treating it as unescaped. This change makes the conservative assumption that casting a pointer to an integer may result in the pointed-to value being modified later.

This fixes a customer-reported false positive (#2 from https://discuss.lgtm.com/t/2-false-positives-in-c-for-comparison-is-always-same/1943)
geoffw0 pushed a commit that referenced this pull request May 29, 2019
CPP: Minor corrections to: Better overflow detection for AssignAdd/AssignSub
semmle-qlci pushed a commit that referenced this pull request May 30, 2019
JavaScript: Update expected test output.
jbj pushed a commit that referenced this pull request Jan 29, 2020
Documentation update for Issue #2623
aschackmull pushed a commit that referenced this pull request Jun 19, 2020
aschackmull pushed a commit that referenced this pull request Jul 8, 2020
yoff pushed a commit that referenced this pull request Oct 20, 2020
…efinition

Python: Add test for tricky module member for type-tracking
aschackmull pushed a commit that referenced this pull request Nov 26, 2020
max-schaefer pushed a commit to max-schaefer/codeql that referenced this pull request Mar 23, 2021
Reintroduce type definitions to API graphs
owen-mc referenced this pull request in owen-mc/codeql Jun 25, 2021
aibaars added a commit that referenced this pull request Oct 14, 2021
smowton referenced this pull request in smowton/codeql Oct 28, 2021
Kotlin: Don't make a *Kt class unless we need one
hvitved added a commit that referenced this pull request Nov 18, 2021
This is in order to avoid name clash with the often so-named IPA type for data-
flow nodes. The name clash is not problematic because they are both in scope,
but because (cached) IPA types with overlapping names are known to sometimes
result in re-evaluation of cached stages, when one of the IPA types gets an
internal `#2` suffix in one query run, and the other IPA type gets the suffix
in another run.
hohn referenced this pull request in hohn/codeql Dec 13, 2021
Java: Add link to prebuilt Struts databases
geoffw0 pushed a commit that referenced this pull request Mar 7, 2022
cklin pushed a commit that referenced this pull request May 23, 2022
tiferet added a commit that referenced this pull request Aug 3, 2022
Feature selection: Use a shipping model with the new features excluding fileImports and calleeImports. Model #2.

github/ml-ql-adaptive-threat-modeling#1968 (comment)
hvitved added a commit that referenced this pull request Oct 10, 2022
DIL before
```
                                                   /* AST::AstNode */ AST#87953007::Cached::TAstNode result) =
  fastTC(AST#a6718388::AstNode::getAChild#0#dispred#ff/2)
.

Synthesis#d9ff06b1::isInDesugaredContext#1#f(/* AST::AstNode */ unique AST#87953007::Cached::TAstNode n)
:-
  exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
    arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
  );
  exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode call_result#2 |
    exists(int arg1,
           /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
      arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, call_result#2)
    ),
    #AST#a6718388::AstNode::getAChild#0#dispredPlus#ff(call_result#2, n)
  )
.
```

DIL after
```
incremental
Synthesis#d9ff06b1::isInDesugaredContext#1#f(/* AST::AstNode */ unique AST#87953007::Cached::TAstNode n)
:-
  exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
    arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
  );
  exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode any#expr##2 |
    rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(any#expr##2),
    exists(cached dontcare string _ |
      AST#a6718388::AstNode::getAChild#1#dispred(any#expr##2, _, n)
    )
  )
| [base_case]
  exists(int arg1, /* AST::AstNode */ dontcare AST#87953007::Cached::TAstNode _ |
    arg1 = -1, AST#87953007::Cached::getSynthChild#2(_, arg1, n)
  )
| [delta_order]
  exists(/* AST::AstNode */ AST#87953007::Cached::TAstNode any#expr##2 |
    delta previous rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(any#expr##2),
    project#AST#a6718388::AstNode::getAChild#1#dispred(any#expr##2, n)
  ),
  not(previous rec Synthesis#d9ff06b1::isInDesugaredContext#1#f(n))
.
``
owen-mc added a commit that referenced this pull request Jul 12, 2023
…used-parameters-2

Go: make `ParameterNode`s for unused parameters #2 (make a disjoint class for unused ones)
owen-mc referenced this pull request in owen-mc/codeql Aug 11, 2023
owen-mc referenced this pull request in owen-mc/codeql Aug 11, 2023
jketema pushed a commit that referenced this pull request Sep 5, 2024
C++: Fix zstd and clean up test
dbartol pushed a commit that referenced this pull request Dec 18, 2024
Refactor CfgScopes and Ast predicate names
dbartol pushed a commit that referenced this pull request Dec 18, 2024
Split sources by taint type
asgerf added a commit that referenced this pull request Feb 4, 2025
owen-mc added a commit that referenced this pull request Mar 25, 2025
Go: Add database source models for the github.com/couchbase/gocb package (#2)
owen-mc added a commit that referenced this pull request Mar 27, 2025
Go: Add `database` source models for the `squirrel` package (#2)
Napalys added a commit that referenced this pull request Apr 29, 2025
JS: Add isMiddlewareSetup() hook to Routing model
nicolaswill added a commit that referenced this pull request May 12, 2025
Implement first stage cryptography modelling and queries
owen-mc added a commit that referenced this pull request May 22, 2025
Java: Fix SpringRequestMappingMethod URL Extraction #2
owen-mc added a commit that referenced this pull request Jun 4, 2025
…sink

Go: Add BigQuery as a sink for SQLi queries #2
owen-mc added a commit that referenced this pull request Jun 12, 2025
Set CWE-134 from 9.3 to 7.3 CVSS score for memory safe languages (#2)
nicolaswill pushed a commit that referenced this pull request Oct 2, 2025
RasmusWL pushed a commit that referenced this pull request Nov 7, 2025
…8e3d-0895-49ec-9025-a9864c8e5367

Fix generate-code-scanning-query-list.py to handle empty code-quality-extended suites
owen-mc added a commit that referenced this pull request Nov 28, 2025
owen-mc added a commit that referenced this pull request Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants