commit | 9fb80f7170ec48e23c3c7b477149eeb37081c699 | [log] [tgz] |
---|---|---|
author | John Koleszar <jkoleszar@google.com> | Thu Nov 04 16:59:26 2010 -0400 |
committer | John Koleszar <jkoleszar@google.com> | Fri Nov 05 14:52:53 2010 -0400 |
tree | 4d98b3422eec115983ac2467d24fd449fb080eb4 | |
parent | 09bcc1f710ea65dc158639479288fb1908ff0c53 [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: I6266aba7fd7de084268712a3d2a81424ead7aa06