bornintelligent / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Mac file ID calculation differs between stripped and non-stripped binaries #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a mach-o binary is stripped, the resulting identifier is different from 
that of the non-stripped 
binary.

The current calculation for the file ID of a Mac mach-o file blithely reads all 
of the segment data to 
calculate the identifier.  I've attached a patch that takes more care, and 
actually reads the section 
data from segments that contain sections (__TEXT, __DATA, __IMPORT, __OBJC).  
This information is 
invariant between the stripped and non-stripped binaries.

Original issue reported on code.google.com by waylonis on 30 Jan 2007 at 11:30

Attachments:

GoogleCodeExporter commented 9 years ago
Submitted as revision 115.

Original comment by waylonis on 31 Jan 2007 at 7:32