[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: valgrind warning on prefix-string-test

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Mon, 19 Jan 2015 16:29:30 +0100

On Mon, Jan 19, 2015 at 3:43 PM, Philip Martin <philip.martin_at_wandisco.com>
wrote:

> $ valgrind -q .libs/lt-prefix-string-test
> ==21219== Invalid write of size 8
> ==21219== at 0x40B9202: svn_prefix_string__expand (prefix_string.c:272)
> ==21219== by 0x400B3F: test_empty_string (prefix-string-test.c:51)
> ==21219== by 0x403C173: do_test_num (svn_test_main.c:426)
> ==21219== by 0x403D452: svn_test_main (svn_test_main.c:949)
> ==21219== by 0x4011A9: main (prefix-string-test.c:154)
> ==21219== Address 0x6458458 is 0 bytes after a block of size 8 alloc'd
> ==21219== at 0x402C1F0: malloc (vg_replace_malloc.c:291)
> ==21219== by 0x41D3EEB: pool_alloc (apr_pools.c:1463)
> ==21219== by 0x41D40A4: apr_pcalloc_debug (apr_pools.c:1520)
> ==21219== by 0x40B91EA: svn_prefix_string__expand (prefix_string.c:270)
> ==21219== by 0x400B3F: test_empty_string (prefix-string-test.c:51)
> ==21219== by 0x403C173: do_test_num (svn_test_main.c:426)
> ==21219== by 0x403D452: svn_test_main (svn_test_main.c:949)
> ==21219== by 0x4011A9: main (prefix-string-test.c:154)
>

Thanks for the report, Philip!
Fixed in r1653030.

-- Stefan^2.
Received on 2015-01-19 16:30:00 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.