*record_mapping, since they can't really be represented by the segment
table herein, and are mistaken for a mapping which covers the entire
address space. Intended to fix #132998, but fix has not been
verified. It does not appear to cause any other failures though.
git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6480
if (record_gap && gapStart < start)
(*record_gap) ( gapStart, start-gapStart );
- (*record_mapping) ( start, endPlusOne-start,
- prot, dev, ino,
- foffset, filename );
+ if (record_mapping && start < endPlusOne)
+ (*record_mapping) ( start, endPlusOne-start,
+ prot, dev, ino,
+ foffset, filename );
if ('\0' != tmp) {
filename[i_eol - i] = tmp;