[PATCH] D111655: [analyzer] non-obvious analyzer warning: Use of zero-allocated memory

Chris D'Angelo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 09:16:02 PDT 2021


chrisdangelo created this revision.
chrisdangelo added a reviewer: NoQ.
Herald added subscribers: manas, steakhal, ASDenysPetrov, martong, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
chrisdangelo requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This change clarifies the message provided when the analyzer catches the use of memory that is allocated with size zero.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111655

Files:
  clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  clang/test/Analysis/NewDelete-checker-test.cpp
  clang/test/Analysis/malloc.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111655.379069.patch
Type: text/x-patch
Size: 4397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211012/df9f08b4/attachment.bin>


More information about the llvm-commits mailing list