[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen(), size() or equal length

Csaba Dabis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 13 04:00:46 PDT 2019


Charusso added a comment.

In D45050#1707483 <https://reviews.llvm.org/D45050#1707483>, @thakis wrote:

> This fails on Windows: http://45.33.8.238/win/386/step_7.txt
>
> Please take a look, and if it's not immediately clear how to fix, b please revert while you investigate.


Oh, thanks! We define it like `typedef __typeof(sizeof(int)) size_t;`, so by rL374715 <https://reviews.llvm.org/rL374715> it needs to work.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D45050





More information about the cfe-commits mailing list