diff options
author | Sudheer A <Sudheer.Abdul-Salam@Sun.COM> | 2009-11-02 13:34:05 -0800 |
---|---|---|
committer | Sudheer A <Sudheer.Abdul-Salam@Sun.COM> | 2009-11-02 13:34:05 -0800 |
commit | 46b592853d0f4f11781b6b0a7533f267c6aee132 (patch) | |
tree | 14a19ac3fe088e563e92a85856e3f3bfd72d6afa /usr/src/lib/libc | |
parent | 7a59e0bf3d22d5fae0df24d331b6720fa776ee31 (diff) | |
download | illumos-joyent-46b592853d0f4f11781b6b0a7533f267c6aee132.tar.gz |
6886377 memmove() (libc.so.1) function defect
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r-- | usr/src/lib/libc/i386/gen/memcpy.s | 6 | ||||
-rw-r--r-- | usr/src/lib/libc/i386_hwcap1/gen/memcpy.s | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/lib/libc/i386/gen/memcpy.s b/usr/src/lib/libc/i386/gen/memcpy.s index b1d36b7a41..c050a67a09 100644 --- a/usr/src/lib/libc/i386/gen/memcpy.s +++ b/usr/src/lib/libc/i386/gen/memcpy.s @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -66,9 +66,9 @@ movl $3,%eax / heavily used constant cmpl %esi,%edi / if (source addr > dest addr) leal -1(%esi,%ecx),%edx - jle .CopyRight / + jbe .CopyRight / cmpl %edx,%edi - jle .CopyLeft + jbe .CopyLeft .CopyRight: cmpl $8,%ecx / if (size < 8 bytes) jbe .OneByteCopy / goto fast short copy loop diff --git a/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s b/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s index d7277977aa..5f3eef411f 100644 --- a/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s +++ b/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -43,9 +43,9 @@ cmpl %esi,%edi / if (source addr > dest addr) leal -1(%esi,%ecx),%edx / %edx = src + size - 1 - jle .memcpy_post / jump if dst < src + jbe .memcpy_post / jump if dst <= src cmpl %edx,%edi - jle .CopyLeft / jump if dst <= src + size - 1 + jbe .CopyLeft / jump if dst <= src + size - 1 jmp .memcpy_post ENTRY(memcpy) |