musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/malloc/memalign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc/memalign.c')
-rw-r--r--src/malloc/memalign.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc/memalign.c b/src/malloc/memalign.c
index 7246a99b..8a6152f4 100644
--- a/src/malloc/memalign.c
+++ b/src/malloc/memalign.c
@@ -13,7 +13,7 @@ void *__memalign(size_t align, size_t len)
return 0;
}
- if (len > SIZE_MAX - align) {
+ if (len > SIZE_MAX - align || __malloc_replaced) {
errno = ENOMEM;
return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月20日 07:09:07 +0000

AltStyle によって変換されたページ (->オリジナル) /