llvm/llvm-project

[clang-analyzer-security.insecureAPI.strcpy] extend list of unsafe functions

Open

#103.038 geöffnet am 13. Aug. 2024

Auf GitHub ansehen
 (16 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
clang:static analyzergood first issue

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

Hi,

it would be nice, if the list of functions, that are marked as unsafe would be extensible or include i.e. the following (under windows and atl/mfc microsoft propietary stuff)

  • _strcpy
  • _strdup
  • _strcat
  • _tcscpy
  • _tcscat
  • _tcsdup
  • lstrcpy
  • lstrcat
  • strncpy
  • strncat

Check: https://clang.llvm.org/docs/analyzer/checkers.html#security-insecureapi-strcpy-c Label : clang-tidy Type: Enhancement

Contributor Guide