tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / mc_replace_strmem.c
blobdf0b22c12393a4adce814fa33bb42dbb27436269
2 /*--------------------------------------------------------------------*/
3 /*--- Replacements for strcpy(), memcpy() et al, which run on the ---*/
4 /*--- simulated CPU. ---*/
5 /*--- mc_replace_strmem.c ---*/
6 /*--------------------------------------------------------------------*/
8 /*
9 This file is part of MemCheck, a heavyweight Valgrind tool for
10 detecting memory errors.
12 Copyright (C) 2000-2013 Julian Seward
13 jseward@acm.org
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License as
17 published by the Free Software Foundation; either version 2 of the
18 License, or (at your option) any later version.
20 This program is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
28 02111-1307, USA.
30 The GNU General Public License is contained in the file COPYING.
33 #include "pub_tool_basics.h"
34 #include "pub_tool_poolalloc.h"
35 #include "pub_tool_hashtable.h"
36 #include "pub_tool_redir.h"
37 #include "pub_tool_tooliface.h"
38 #include "pub_tool_clreq.h"
40 #include "mc_include.h"
41 #include "memcheck.h"
43 #define RECORD_OVERLAP_ERROR(s, src, dst, len) \
44 VALGRIND_DO_CLIENT_REQUEST_STMT( \
45 _VG_USERREQ__MEMCHECK_RECORD_OVERLAP_ERROR, \
46 s, src, dst, len, 0)
48 #include "../shared/vg_replace_strmem.c"