commit | 755e2a290bc2bc606f3434a7f979f59099011846 | [log] [tgz] |
---|---|---|
author | John Koleszar <jkoleszar@google.com> | Thu Nov 04 20:59:26 2010 |
committer | John Koleszar <jkoleszar@google.com> | Mon Nov 08 21:56:11 2010 |
tree | 196b3d2bc9b23a582411e04d6a1442dfa3a7e861 | |
parent | 30ba8f2ae37cb41d22d2e743bf6d3730f91c788b [diff] |
fix integer promotion bug in partition size check The check '(user_data_end - partition < partition_size)' must be evaluated as a signed comparison, but because partition_size was unsigned, the LHS was promoted to unsigned, causing an incorrect result on 32-bit. Instead, check the upper and lower bounds of the segment separately. Change-Id: Ia01708be8492e64abb16b8157e816bd59e2472cf