1 /* 2 * Copyright 2017 Vincent Sanders <vince@netsurf-browser.org> 3 * 4 * This file is part of NetSurf, http://www.netsurf-browser.org/ 5 * 6 * NetSurf is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2 of the License. 9 * 10 * NetSurf is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 /** 20 * \file 21 * 22 * Interface to heap fault injection generation. 23 * 24 * This library is used to inject allocation faults into NetSurf tests 25 */ 26 27 #ifndef NETSURF_TEST_MALLOC_FIG_H 28 #define NETSURF_TEST_MALLOC_FIG_H 29 30 void malloc_limit(unsigned int count); 31 32 void* malloc(size_t size); 33 34 #endif 35