github / github/codeql

C++ Initializer Inconsistencies

Open
#9,787 2 comments 0 reactions 0 assignees View on GitHub
C++ question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Below is a simple C++ file illustrating two uses of codeql `Initializer` .

```
#include
#include

using namespace std;
int main()
{
char* test1 = "hello world";
if(char* test2 = (char*)malloc(10))
{
cout<<"test"<

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.