commit | 5ebb0d603e74b5d84c8b73b0b89c18bbbd3aeedb | [log] [tgz] |
---|---|---|
author | Rubin Xu <[email protected]> | Tue Oct 09 16:13:38 2018 +0100 |
committer | Rohit Yengisetty <[email protected]> | Tue Oct 16 17:30:32 2018 -0700 |
tree | ef1193a3a72f2bbff80d7430997466be3ee5e675 | |
parent | 5dce8b6609f630a91e3d5ccf2891612b0d1b24c9 [diff] |
[DO NOT MERGE] Fix signedness mismatch and integer underflow persist_get_max_entries() is supposed to return an unsigned integer as the maximum number of entries but it also wrongly returns "-1" as an error condition. Also fix an issue where an unsigned subtraction in this routine could lead to integer underflow. Bug: 112731440 Test: manual Change-Id: I9672e39bef2c12156dda7806a08c52044962c178 (cherry picked from commit 19ef1ae99a0138197e43658e84d860d17912a4a0)