[Bug 1089722] Re: wcslen reads beyond the end of the buffer

Phillip Susi psusi at ubuntu.com
Sun Dec 30 03:58:39 UTC 2012


I suspected it may be a false positive in valgrind from such an
optimization in eglibc, but looking at the uncommented glibc source, I
can not tell if it actually is safe and won't cross a page boundary.  If
it can't cross a page boundary, then yes, valgrind should be configured
to ignore it, but if it can, then it certainly is a bug.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1089722

Title:
  wcslen reads beyond the end of the buffer

Status in “eglibc” package in Ubuntu:
  Incomplete

Bug description:
  valgrind reports many errors of wcslen reading beyond the end of the
  buffer.  It appears that sysdeps/x86_64/wcslen.S tries do do 64 bit
  reads which can result in reading beyond the end of the buffer if
  there are less than 64 bits left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1089722/+subscriptions




More information about the foundations-bugs mailing list