[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
Wed May 30 08:40:43 PDT 2018


xbolva00 added a comment.

memcpy(crypt_buf, passwd, passwd_len); <--- warning
memcpy(crypt_buf + passwd_len, salt, salt_len);

This is a false warning since it appends strings using memcpy. But no idea what to do and if it is possible to avoid these false warnings.


https://reviews.llvm.org/D45050





More information about the cfe-commits mailing list