On Fri, Jun 17, 2011 at 04:16:33AM -0400, Jeff King wrote:
> Yeah, they even ship a commented-out implementation of strspn; the patch
> I mentioned above basically just uncomments it.
> [...]
> I'll attach the full pristine patch from valgrind 3.6.1-5 that fixes it
> for me.
I get a similar issue
On Fri, Jun 17, 2011 at 08:28:57AM +0200, Pierre Habouzit wrote:
> > $ 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: mai
On Wed, Jun 15, 2011 at 05:36:52PM -0400, Jeff King wrote:
> 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
>
> int main(void)
> {
> char buf[32];
>
> strcpy(buf,
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
int main(void)
{
char buf[32];
strcpy(buf, "foo");
if (strspn(buf, "o"))
return 0;
return 1;
}
EOF
$ gcc -g -o
4 matches
Mail list logo