github / github/codeql

Question - Variable initialization

Offen
#7,827 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

Variable initialization (cpp)

Hi, I'm having problems trying to catch the first assignment of a variable in a function's argument.

For instance, catching the `struct->elem` variable from `recvfrom` arg 2, and finding its first assignment whereby it is equated to `ptr`. Ultimately, I want to catch all `ptr` variables that are used in the `recvfrom` function.
```
struct->elem = ptr
recvfrom(df, struct->elem...)
```

Thanks for any help!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.