Package: valgrind
Version: 1:3.6.1-5
Severity: minor
Tags: patch

I get false positives with a simple use of strspn:

  $ cat >foo.c <<'EOF'
  #include <string.h>

  int main(void)
  {
    char buf[32];

    strcpy(buf, "foo");
    if (strspn(buf, "o"))
      return 0;
    return 1;
  }
  EOF

  $ gcc -g -o foo foo.c
  $ valgrind ./foo
  ...
  ==5854== Conditional jump or move depends on uninitialised value(s)
  ==5854==    at 0x4B3623E: __strspn_sse42 (strspn-c.c:142)
  ==5854==    by 0x400509: main (foo.c:8)
  ...

Looks like it was reported elsewhere with a patch a few months ago:

  https://bugs.kde.org/show_bug.cgi?id=270925

I tried the version of valgrind in experimental, but it shows the same
behavior.

-Peff

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages valgrind depends on:
ii  libc6                         2.13-7     Embedded GNU C Library: Shared lib
ii  libc6-dbg                     2.13-7     Embedded GNU C Library: detached d

Versions of packages valgrind recommends:
ii  gdb                           7.2-1      The GNU Debugger

Versions of packages valgrind suggests:
pn  alleyoop                      <none>     (no description available)
pn  kcachegrind                   <none>     (no description available)
pn  valkyrie                      <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to