mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-14 07:10:05 +00:00
(__mempcpy): Protect size arg for addition when using __builtin_memcpy.
This commit is contained in:
parent
68cd0103a5
commit
bf689a6646
@ -202,7 +202,7 @@ __STRING2_COPY_TYPE (8);
|
||||
# define __mempcpy(dest, src, n) \
|
||||
(__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \
|
||||
&& __string2_1bptr_p (src) && n <= 8 \
|
||||
? __builtin_memcpy (dest, src, n) + n \
|
||||
? __builtin_memcpy (dest, src, n) + (n) \
|
||||
: __mempcpy (dest, src, n)))
|
||||
# else
|
||||
# define __mempcpy(dest, src, n) \
|
||||
|
Loading…
Reference in New Issue
Block a user