[libc-commits] [PATCH] D74091: [libc] Lay out framework for fuzzing libc functions.
Paula Toth via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Feb 21 17:24:33 PST 2020
PaulkaToast added inline comments.
================
Comment at: libc/fuzzing/string/strcpy_fuzz.cpp:16
+ size_t i;
+ for (i = 0; src[i] != '\0'; i++){
+ // ensure correctness of strcpy
----------------
abrachet wrote:
> Couldn't this just be from i = 0 to size?
The length of the string that strcpy copies may not be the same as the size of the fuzzing input due to null-terminators appearing at random in data.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74091/new/
https://reviews.llvm.org/D74091
More information about the libc-commits
mailing list