Hi all,

I seem to have encountered a false positive with valgrind-3.13.0 with the
program below.
https://pastebin.com/XPHsM2sF

Valgrind gives "invalid read" errors show the following pastebin:
https://pastebin.com/a4vzNMvW.

The error is reported during the second call to w_strdup_printf on address
of string a (which is created during the first call).
If I uncomment the printf calls, the errors disappear. If I move free(a)
next to free(b), the errors also disappear.

I am not sure if I am missing something in my program or if those are real
false positives.
I would appreciate any help!

Thanks & Best Regards,
Mohamed
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to