[PATCH] D59262: [scudo][standalone] Add string utility functions

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 09:22:43 PDT 2019


cryptoad created this revision.
cryptoad added reviewers: morehouse, eugenis, vitalybuka, hctim.
Herald added subscribers: Sanitizers, jdoerfert, delcypher, mgorny.
Herald added projects: LLVM, Sanitizers.

Add some string utility functions, notably to format strings, get
lengths, convert a string to a number. Those functions will be
used in reports and flags (coming up next). They were mostly borrowed
from sanitizer_common.

Make use of the string length function in a couple places in the
platform code that was checked in with inlined version of it.

Add some tests.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D59262

Files:
  lib/scudo/standalone/CMakeLists.txt
  lib/scudo/standalone/fuchsia.cc
  lib/scudo/standalone/linux.cc
  lib/scudo/standalone/string_utils.cc
  lib/scudo/standalone/string_utils.h
  lib/scudo/standalone/tests/CMakeLists.txt
  lib/scudo/standalone/tests/strings_test.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59262.190279.patch
Type: text/x-patch
Size: 17228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190312/2ab7bd63/attachment.bin>


More information about the llvm-commits mailing list