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