mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 02:36:39 +02:00
https://github.com/Mbed-TLS/mbedtls/releases/tag/mbedtls-3.6.1 update security issues tracking url as https://tls.mbed.org/security redirect to https://www.trustedfirmware.org/projects/mbed-tls/
13 lines
588 B
Diff
13 lines
588 B
Diff
Ref https://github.com/Mbed-TLS/mbedtls/issues/9003
|
|
|
|
--- a/library/common.h
|
|
+++ b/library/common.h
|
|
@@ -199,7 +199,7 @@ static inline void mbedtls_xor(unsigned
|
|
uint8x16_t x = veorq_u8(v1, v2);
|
|
vst1q_u8(r + i, x);
|
|
}
|
|
-#if defined(__IAR_SYSTEMS_ICC__)
|
|
+#if defined(__IAR_SYSTEMS_ICC__) || defined(MBEDTLS_COMPILER_IS_GCC)
|
|
/* This if statement helps some compilers (e.g., IAR) optimise out the byte-by-byte tail case
|
|
* where n is a constant multiple of 16.
|
|
* For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time
|