[PATCH] D139233: [-Wunsafe-buffer-usage] Add an unsafe gadget for pointer-arithmetic operations

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 3 13:24:06 PST 2023


NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: clang/lib/Analysis/UnsafeBufferUsage.cpp:383
+  // FIXME: pointer adding zero should be fine
+  //FIXME: this gadge will need a fix-it
+};
----------------
It's pretty likely that it won't because we'll need a more specialized gadget for this. 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139233/new/

https://reviews.llvm.org/D139233



More information about the cfe-commits mailing list