blob: 6150f813c34765b5c29ff62ce00808ff5d66ba28 [file] [log] [blame]
bartafe82262008-06-01 08:48:48 +00001/*--------------------------------------------------------------------*/
2/*--- Replacements for strlen() and strnlen(), which run on the ---*/
3/*--- simulated CPU. ---*/
4/*--------------------------------------------------------------------*/
5
6/*
bartbedfd232009-03-26 19:07:15 +00007 This file is part of DRD, a heavyweight Valgrind tool for
8 detecting threading errors. The code below has been extracted
9 from memchec/mc_replace_strmem.c, which has the following copyright
10 notice:
bartafe82262008-06-01 08:48:48 +000011
Elliott Hughesed398002017-06-21 14:41:24 -070012 Copyright (C) 2000-2017 Julian Seward
bartbedfd232009-03-26 19:07:15 +000013 jseward@acm.org
bartafe82262008-06-01 08:48:48 +000014
bartbedfd232009-03-26 19:07:15 +000015 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.
bartafe82262008-06-01 08:48:48 +000019
bartbedfd232009-03-26 19:07:15 +000020 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.
bartafe82262008-06-01 08:48:48 +000024
bartbedfd232009-03-26 19:07:15 +000025 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.
bartafe82262008-06-01 08:48:48 +000029
bartbedfd232009-03-26 19:07:15 +000030 The GNU General Public License is contained in the file COPYING.
bartafe82262008-06-01 08:48:48 +000031*/
32
bart9c7779b2013-11-24 17:48:13 +000033#include "../shared/vg_replace_strmem.c"