Home
last modified time | relevance | path

Searched hist:"86 d6bc20855b2dece41c97c2984695edc9e2df05" (Results 1 – 4 of 4) sorted by relevance

/optee_os/lib/libutils/isoc/newlib/
H A Dstrcpy.c86d6bc20855b2dece41c97c2984695edc9e2df05 Fri Jul 11 15:58:58 UTC 2025 Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> libutils: disable word-at-a-time for str* functions with ASan

The optimized versions of str* functions perform word-aligned reads
that may go slightly past the actual string boundary. The out-of-bound
read accesses doesn't look dangerous, because in this case buffer start
address is always word-size aligned.

Disable the optimized versions when CFG_CORE_SANITIZE_KADDRESS is enabled
to avoid ASan errors.

Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
H A Dstrchr.c86d6bc20855b2dece41c97c2984695edc9e2df05 Fri Jul 11 15:58:58 UTC 2025 Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> libutils: disable word-at-a-time for str* functions with ASan

The optimized versions of str* functions perform word-aligned reads
that may go slightly past the actual string boundary. The out-of-bound
read accesses doesn't look dangerous, because in this case buffer start
address is always word-size aligned.

Disable the optimized versions when CFG_CORE_SANITIZE_KADDRESS is enabled
to avoid ASan errors.

Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
H A Dstrlen.c86d6bc20855b2dece41c97c2984695edc9e2df05 Fri Jul 11 15:58:58 UTC 2025 Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> libutils: disable word-at-a-time for str* functions with ASan

The optimized versions of str* functions perform word-aligned reads
that may go slightly past the actual string boundary. The out-of-bound
read accesses doesn't look dangerous, because in this case buffer start
address is always word-size aligned.

Disable the optimized versions when CFG_CORE_SANITIZE_KADDRESS is enabled
to avoid ASan errors.

Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
H A Dstrcmp.c86d6bc20855b2dece41c97c2984695edc9e2df05 Fri Jul 11 15:58:58 UTC 2025 Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de> libutils: disable word-at-a-time for str* functions with ASan

The optimized versions of str* functions perform word-aligned reads
that may go slightly past the actual string boundary. The out-of-bound
read accesses doesn't look dangerous, because in this case buffer start
address is always word-size aligned.

Disable the optimized versions when CFG_CORE_SANITIZE_KADDRESS is enabled
to avoid ASan errors.

Signed-off-by: Aleksandr Iashchenko <aleksandr.iashchenko@linutronix.de>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>