breakpad/src/processor/testdata
jimblandy 03ebc1d245 Breakpad processor: Fix function and public symbol lookup.
In r480, I botched the change to make the comparisons that decide
whether an address falls within a function's range safe from overflow.
The original code said:

  address >= function_base && address < function_base + function_size

which is fine unless the function abuts the end of the address space,
in which case the addition overflows and you get a false negative.

My change subtracted function_size from both sides of the latter
comparison, which is meaning-preserving in true math, and gets you:

  address >= function_base && address - function_size < function_base

This not only reads strangely, but also still overflows if
function_size is greater than address. That's rare, but I've added a
case to the unit tests that checks it.

My intent had been to replace the addition which could overflow with a
subtraction that was known not to overflow, namely:

  address >= function_base && address - function_base < function_size

This is equivalent to the original in true math, and because of the
first comparison, we know the subtraction won't underflow in MemAddr
math.

The patch includes similar fixes to the public symbol lookup code, and
to FindWindowsFrameInfo, which was the only other function affected by
r480.

a=jimblandy, r=mmentovai


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@503 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-01-28 05:17:23 +00:00
..
symbols Fix newlines (#253). rs=ted.mielczarek 2008-04-07 21:50:57 +00:00
linux_test_app.cc Added on-demand minidump generation for Linux, and a Linux test app. 2009-12-16 20:10:57 +00:00
minidump2.dmp Rename Airbag to Breakpad. 2007-02-14 19:51:05 +00:00
minidump2.dump.out Rename Airbag to Breakpad. 2007-02-14 19:51:05 +00:00
minidump2.stackwalk.machine_readable.out Updated test data from Issue 143 2007-05-30 14:06:36 +00:00
minidump2.stackwalk.out Let x86 stackwalker scan stack in cases where program evaluation fails. Original patch by Jeff Muizelaar <jmuizelaar@mozilla.com> with some changes by me. r=mento at http://breakpad.appspot.com/32003/show 2009-10-08 14:21:50 +00:00
module1.out Breakpad processor: Fix function and public symbol lookup. 2010-01-28 05:17:23 +00:00
module2.out Test data update following PDBSourceLineWriter change (#91). r=bryner 2006-12-07 15:55:30 +00:00
module3_bad.out Test data update following PDBSourceLineWriter change (#91). r=bryner 2006-12-07 15:55:30 +00:00
module4_bad.out Ignore functions that have invalid addresses or sizes, instead of aborting the 2007-03-22 23:20:17 +00:00
test_app.cc Remove dependency on ole32 on Windows (#132). Patch by Sorin Jianu <sorinj>, r=me. 2008-01-28 20:02:01 +00:00