Home
last modified time | relevance | path

Searched hist:e103c301ffc0e1393834c45cc64c6978ddb6ad8f (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/isoc/
H A Dbget.ce103c301ffc0e1393834c45cc64c6978ddb6ad8f Mon Sep 11 09:42:41 UTC 2017 Jens Wiklander <jens.wiklander@linaro.org> libutils: malloc: use asan_memset_unchecked()

The malloc implementation uses the new asan_memset_unchecked() function
internally instead of memset() to avoid unexpected asserts when the
address sanitizer is enabled.

bget() tags the requested amount of memory allocated, but eventual
padding etc isn't tagged so writes there from instrumented functions,
for instance the normal memset(), will be caught.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
H A Dbget_malloc.ce103c301ffc0e1393834c45cc64c6978ddb6ad8f Mon Sep 11 09:42:41 UTC 2017 Jens Wiklander <jens.wiklander@linaro.org> libutils: malloc: use asan_memset_unchecked()

The malloc implementation uses the new asan_memset_unchecked() function
internally instead of memset() to avoid unexpected asserts when the
address sanitizer is enabled.

bget() tags the requested amount of memory allocated, but eventual
padding etc isn't tagged so writes there from instrumented functions,
for instance the normal memset(), will be caught.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>