[PATCH] D77066: [analyzer] ApiModeling: Add buffer size arg constraint
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 30 09:11:00 PDT 2020
martong created this revision.
martong added reviewers: NoQ, Szelethus, Charusso, steakhal.
Herald added subscribers: cfe-commits, ASDenysPetrov, gamesh411, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun, whisperity.
Herald added a project: clang.
martong added a parent revision: D76790: [analyzer] StdLibraryFunctionsChecker: fix bug with arg constraints.
Introducing a new argument constraint to confine buffer sizes. It is typical in
C APIs that a parameter represents a buffer and another param holds the size of
the buffer (or the size of the data we want to handle from the buffer).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77066
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h
clang/lib/StaticAnalyzer/Checkers/CheckPlacementNew.cpp
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
clang/lib/StaticAnalyzer/Core/DynamicSize.cpp
clang/test/Analysis/std-c-library-functions-arg-constraints.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77066.253606.patch
Type: text/x-patch
Size: 12358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200330/13bd9ce8/attachment-0001.bin>
More information about the cfe-commits
mailing list