Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Query evaluation ran out of memory (Java heap maximum: 1165 MiB, Off-heap arrays maximum: 1941 MiB).

Open
#865 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, cpp, vscode

Research direction

The report names no repository file, test, or entry point. Start by reproducing the supplied query with vscode-codeql 1.4.8 and the described C/C++ database; the issue does not provide enough information to identify the affected code or define a concrete completion check.

Written by the indexing model from the issue text.

Description

question VSCode

Hi Team, I'm using vscode-codeql version 1.4.8 and I got this error Query evaluation ran out of memory (Java heap maximum: 1165 MiB, Off-heap arrays maximum: 1941 MiB). while running a query to find UAF vulnerability in C source code. The db size is 4+ gb. The query execution stopped after this error. Below is the query I executed.

import cpp
import semmle.code.cpp.dataflow.DataFlow
import DataFlow::PathGraph

class Config extends DataFlow::Configuration{
    Config() {this = "Use after free"}

    override predicate isSource(DataFlow::Node arg) {
        exists(FunctionCall call |
            call.getArgument(0) = arg.asDefiningArgument() /* for pointers use asDefiningArgument */  and
            call.getTarget().hasGlobalOrStdName("free")
        )
    }
    
    override predicate isSink(DataFlow::Node sink) {
        dereferenced(sink.asExpr())
    }
}

from DataFlow::PathNode source, DataFlow::PathNode sink, Config config
where config.hasFlowPath(source, sink)
select sink, source, sink, "Potential Use After Free"

I was searching ways to increase heap size but I do not have java installed on my windows 10.

Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.