https://sourceware.org/bugzilla/show_bug.cgi?id=26041
Bug ID: 26041 Summary: Source and destination overlap in strcat Product: binutils Version: 2.35 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- Build: cr16 [hjl@gnu-tools-1 testsuite]$ valgrind ../as-new -o tmpdir/cinv_test.o /export/gnu/import/git/sources/binutils-gdb/gas/testsuite/gas/cr16/cinv_test.s ==299659== Memcheck, a memory error detector ==299659== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==299659== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==299659== Command: ../as-new -o tmpdir/cinv_test.o /export/gnu/import/git/sources/binutils-gdb/gas/testsuite/gas/cr16/cinv_test.s ==299659== ==299659== Source and destination overlap in strcat(0x4be5414, 0x4be5419) ==299659== at 0x483D920: strcat (vg_replace_strmem.c:310) ==299659== by 0x42E907: md_assemble (tc-cr16.c:2564) ==299659== by 0x41F9AF: read_a_source_file (read.c:1180) ==299659== by 0x4052FE: perform_an_assembly_pass (as.c:1252) ==299659== by 0x4052FE: main (as.c:1416) ==299659== ==299659== ==299659== HEAP SUMMARY: ==299659== in use at exit: 4,794,465 bytes in 48 blocks ==299659== total heap usage: 145 allocs, 97 frees, 5,538,115 bytes allocated ==299659== ==299659== LEAK SUMMARY: ==299659== definitely lost: 443 bytes in 8 blocks ==299659== indirectly lost: 0 bytes in 0 blocks ==299659== possibly lost: 0 bytes in 0 blocks ==299659== still reachable: 4,794,022 bytes in 40 blocks ==299659== suppressed: 0 bytes in 0 blocks ==299659== Rerun with --leak-check=full to see details of leaked memory ==299659== ==299659== For lists of detected and suppressed errors, rerun with: -s ==299659== ERROR SUMMARY: 6 errors from 1 contexts (suppressed: 0 from 0) [hjl@gnu-tools-1 testsuite]$ -- You are receiving this mail because: You are on the CC list for the bug.