blob: efc5db907813ef97ecb997d649138f7f6076fc6f [file] [log] [blame]
# **********************************************************
# Copyright (c) 2011-2012 Google, Inc. All rights reserved.
# Copyright (c) 2009-2010 VMware, Inc. All rights reserved.
# **********************************************************
#
# Dr. Memory: the memory debugger
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 2.1 of the License, and no later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# This is malloc.out without leaks or uninit.
malloc
malloc small
malloc 0
malloc big
calloc
realloc
invalid free
%if WINDOWS
HeapFree failed 87
%endif
all done
~~Dr.M~~ ERRORS FOUND:
%if UNIX
~~Dr.M~~ 2 unique, 21 total unaddressable access(es)
%endif
%if WINDOWS
# extra unaddrs from code to avoid app crash on win7
# pattern-addr-pre-check skips the repeated report of error #3
~~Dr.M~~ 3 unique, 22 total unaddressable access(es)
%endif
%if WINDOWS
# we have an extra test for invalid heap params
~~Dr.M~~ 2 unique, 2 total invalid heap argument(s)
# we get a warning about heap alloc failing from HeapReAlloc(,NULL,)
~~Dr.M~~ 1 unique, 1 total warning(s)
%endif
%if UNIX
~~Dr.M~~ 1 unique, 1 total invalid heap argument(s)
~~Dr.M~~ 0 unique, 0 total warning(s)
%endif