1: https://github.com/github/codeql/blob/main/cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.ql
2: GPT4 + hand modification
3: GPT4 + hand modification
4: GPT4 + hand modification
5: GPT4 + hand modification
