llvm/llvm-project

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

Open

#103,038 创建于 2024年8月13日

在 GitHub 查看
 (16 评论) (0 反应) (0 负责人)C++ (10,782 fork)batch import
clang:static analyzergood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

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

贡献者指南