==19758== Memcheck, a memory error detector ==19758== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==19758== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==19758== Command: tftp 10.7.1.1 -c get pxelinux.0 ==19758== --19758-- Valgrind options: --19758-- -v --19758-- Contents of /proc/version: --19758-- Linux version 2.6.32-el-smp-alt23 (builder@apiary.orion.altlinux.org) (gcc version 4.4.5 20101112 (ALT Linux 4.4.5-alt3) (GCC) ) #1 SMP Mon Jun 6 09:31:15 UTC 2011 --19758-- Arch and hwcaps: X86, x86-sse1-sse2 --19758-- Page sizes: currently 4096, max supported 4096 --19758-- Valgrind library directory: /usr/lib/valgrind --19758-- Reading syms from /lib/ld-2.11.3.so (0x4000000) --19758-- Considering /usr/lib/debug/.build-id/ef/cbe170e999532002701c7b3b4bafba0651d90b.debug .. --19758-- .. build-id is valid --19758-- Reading syms from /usr/bin/tftp (0x8048000) --19758-- Considering /usr/lib/debug/.build-id/30/86895433f05b221e648b2d8a447225a415e1c7.debug .. --19758-- .. build-id mismatch (found (null) wanted 3086895433f05b221e648b2d8a447225a415e1c7) --19758-- Considering /usr/lib/debug/usr/bin/tftp.debug .. --19758-- .. CRC is valid --19758-- Reading syms from /usr/lib/valgrind/memcheck-x86-linux (0x38000000) --19758-- object doesn't have a symbol table --19758-- object doesn't have a dynamic symbol table --19758-- Reading suppressions file: /usr/lib/valgrind/default.supp --19758-- REDIR: 0x4016c20 (strlen) redirected to 0x38040038 (???) --19758-- REDIR: 0x4016a20 (index) redirected to 0x38040013 (???) --19758-- Reading syms from /usr/lib/valgrind/vgpreload_core-x86-linux.so (0x4021000) --19758-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so (0x4024000) ==19758== WARNING: new redirection conflicts with existing -- ignoring it --19758-- new: 0x04016a20 (index ) R-> 0x04028320 index ==19758== WARNING: new redirection conflicts with existing -- ignoring it --19758-- new: 0x04016c20 (strlen ) R-> 0x04028750 strlen --19758-- Reading syms from /lib/libreadline.so.5.2 (0x403c000) --19758-- Considering /usr/lib/debug/.build-id/e3/6ccb4e3aaf6d4adc0183e8e01140c7a20a416e.debug .. --19758-- .. build-id is valid --19758-- Reading syms from /lib/libc-2.11.3.so (0x406e000) --19758-- Considering /usr/lib/debug/.build-id/3f/3aa76523eb2a252d96cf301adc76dde64045d6.debug .. --19758-- .. build-id is valid --19758-- Reading syms from /lib/libtinfo.so.5.7 (0x41d2000) --19758-- Considering /usr/lib/debug/.build-id/2e/3d781d50e915facbaa803113f7a3e2787fde82.debug .. --19758-- .. build-id is valid --19758-- REDIR: 0x40e25d0 (rindex) redirected to 0x4028190 (rindex) --19758-- REDIR: 0x40de2e0 (malloc) redirected to 0x4027e40 (malloc) --19758-- REDIR: 0x40e21b0 (strlen) redirected to 0x4028710 (strlen) --19758-- REDIR: 0x40e3b60 (mempcpy) redirected to 0x402a5b0 (mempcpy) --19758-- REDIR: 0x40e4130 (memcpy) redirected to 0x40293f0 (memcpy) --19758-- REDIR: 0x40e31d0 (strstr) redirected to 0x402a870 (strstr) --19758-- REDIR: 0x40e37f0 (memchr) redirected to 0x40293b0 (memchr) --19758-- REDIR: 0x40e6970 (strchrnul) redirected to 0x402a470 (strchrnul) --19758-- REDIR: 0x40e3f60 (strncasecmp) redirected to 0x4028df0 (strncasecmp) --19758-- REDIR: 0x40de7a0 (free) redirected to 0x4027040 (free) --19758-- REDIR: 0x40e1bb0 (strcmp) redirected to 0x4029270 (strcmp) --19758-- REDIR: 0x40e3dc0 (stpcpy) redirected to 0x4029f80 (stpcpy) --19758-- REDIR: 0x40e1c30 (strcpy) redirected to 0x4028790 (strcpy) --19758-- REDIR: 0x40df280 (calloc) redirected to 0x4026560 (calloc) --19758-- Reading syms from /lib/libnss_files-2.11.3.so (0x45ec000) --19758-- Considering /usr/lib/debug/.build-id/11/e6d6cd7a65322539d50e85161514a69ae6adbc.debug .. --19758-- .. build-id is valid --19758-- REDIR: 0x40e68a0 (rawmemchr) redirected to 0x402a4a0 (rawmemchr) --19758-- REDIR: 0x40e19f0 (index) redirected to 0x4028260 (index) --19758-- REDIR: 0x414f560 (__strcpy_chk) redirected to 0x402a4e0 (__strcpy_chk) **19758** *** strcpy_chk: buffer overflow detected ***: program terminated ==19758== at 0x4028157: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4477) ==19758== by 0x402A52F: __strcpy_chk (mc_replace_strmem.c:893) ==19758== by 0x8049031: makerequest (string3.h:105) ==19758== by 0x80496DA: tftp_recvfile (tftp.c:197) ==19758== by 0x804A348: get (main.c:673) ==19758== by 0x804AC12: main (main.c:345) --19758-- Discarding syms at 0x45edaa0-0x45f5038 in /lib/libnss_files-2.11.3.so due to munmap() ==19758== ==19758== HEAP SUMMARY: ==19758== in use at exit: 361 bytes in 2 blocks ==19758== total heap usage: 52 allocs, 50 frees, 4,144 bytes allocated ==19758== ==19758== Searching for pointers to 2 not-freed blocks ==19758== Checked 208,032 bytes ==19758== ==19758== LEAK SUMMARY: ==19758== definitely lost: 0 bytes in 0 blocks ==19758== indirectly lost: 0 bytes in 0 blocks ==19758== possibly lost: 0 bytes in 0 blocks ==19758== still reachable: 361 bytes in 2 blocks ==19758== suppressed: 0 bytes in 0 blocks ==19758== Rerun with --leak-check=full to see details of leaked memory ==19758== ==19758== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 10) --19758-- --19758-- used_suppression: 19 U1004-ARM-_dl_relocate_object ==19758== ==19758== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 10)