[PATCH] D45050: [clang-tidy] New checker for not null-terminated result caused by strlen or wcslen

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 19 03:17:34 PDT 2018


xbolva00 added a comment.

Another idea if you want to implement it - check fopen.

FILE *f = fopen("file", "r"); // read only
fputs("str", f); // we are writing -> boom, sigsegv or something like that.


https://reviews.llvm.org/D45050





More information about the cfe-commits mailing list