Enhancement to DCL39-C and DCL55-CPP

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, cpp
Domain
security

Research direction

Start with the discussion in PR 165 and the DCL39-C rule description linked in the issue, then locate the shared query covering DCL39-C and DCL55-CPP. Compare its existing missing-initialization cases with the first noncompliant example described by the rule. Done means cases with an initializer but no assurance that padding is explicitly cleared are detected.

Written by the indexing model from the issue text.

Description

Difficulty-High enhancement Standard-CERT-C Stardard-CERT-C++

Context: conversation in this PR

this is a shared query.

It currently covers many cases relating to missing initialization,

however for the first NCE on the rule description, where there is an initializer but no assurance that the padding is explicitly cleared, these types of cases are currently not detected

Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

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/codeql-coding-standards

All issues in github/codeql-coding-standards

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.