Hi there, When write *C++* code like bellow:
char *tmp = new char[10]; strcpy(tmp, "foo"); delete[] tmp; Valgrind complains ''Conditional jump or move depends on uninitialised value(s)" errors. But bellow is ok: char *tmp = new char[10]*()*; Is there anything wrong? Should that be an error? valgrind --track-origins=yes --leak-check=full --show-reachable=yes --log-file=log ./a.out valgrind-3.10.0 gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) -- xiaofeng -- gpg key fingerprint: 2048R/5E63005B C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B -- trans-zh_cn mailing list trans-zh...@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/trans-zh_cn
------------------------------------------------------------------------------
_______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users