1
2/*--------------------------------------------------------------------*/
3/*--- Replacements for strcpy(), memcpy() et al, which run on the  ---*/
4/*--- simulated CPU.                                               ---*/
5/*---                                          mc_replace_strmem.c ---*/
6/*--------------------------------------------------------------------*/
7
8/*
9   This file is part of MemCheck, a heavyweight Valgrind tool for
10   detecting memory errors.
11
12   Copyright (C) 2000-2013 Julian Seward
13      jseward@acm.org
14
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.
19
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.
24
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.
29
30   The GNU General Public License is contained in the file COPYING.
31*/
32
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"
39
40#include "mc_include.h"
41#include "memcheck.h"
42
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)
47
48#include "../shared/vg_replace_strmem.c"
49