Skip to content

Commit

Permalink
* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
Browse files Browse the repository at this point in the history
	count is zero.
  • Loading branch information
Ulrich Drepper committed May 9, 2009
1 parent b5f7c4c commit 2221e33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
2009-05-08 Ulrich Drepper <drepper@redhat.com>

* sysdeps/x86_64/memchr.S: Handle invalid buffer pointers when
count is zero.

* po/da.po: Update from translation team.

2009-05-05 Jakub Jelinek <jakub@redhat.com>

* io/sys/stat.h (fstatat64): Guard prototype with __USE_LARGEFILE64,
guard __extern_inline wrapper with __USE_ATFILE instead of __USE_GNU.

2009-05-05 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sys/personality.h: Add ADDR_COMPAT_LAYOUT
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/x86_64/memchr.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ ENTRY (memchr)
movq %rdi, %rcx
punpcklbw %xmm1, %xmm1
andq $~15, %rdi
testq %rdx, %rdx
punpcklbw %xmm1, %xmm1
jz 3f
orl $0xffffffff, %esi
movdqa (%rdi), %xmm0
pshufd $0, %xmm1, %xmm1
Expand Down

0 comments on commit 2221e33

Please sign in to comment.