Use arrays on stack and avoid use of new and delete operators.
authorSiva Chandra <sivachandra@google.com>
Thu, 10 Oct 2019 16:06:21 +0000 (16:06 +0000)
committerSiva Chandra <sivachandra@google.com>
Thu, 10 Oct 2019 16:06:21 +0000 (16:06 +0000)
commit7a6d98325cd7463868472532391ad13122479380
tree7da3d8429c6621ea34d28742209d830320ee72ac
parent94d379095a9c1030582a6ab9199d67d6c64a2642
Use arrays on stack and avoid use of new and delete operators.

Summary: Also fix an error found with LLVM_USE_SANITIZER=Address.

Reviewers: nelhage

Subscribers: libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D68761

llvm-svn: 374374
libc/src/string/strcat/strcat_test.cpp
libc/src/string/strcpy/strcpy_test.cpp