commit | e0464ce4a4665001b13461f16ce958f0b67180ad | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Oct 09 16:05:39 2018 +0100 |
committer | Rohit Yengisetty <rngy@google.com> | Tue Oct 16 16:05:27 2018 -0700 |
tree | 061017bb4203f3fb400fbba57174612b4138e2a8 | |
parent | 60d7059af6016016cab2458f7acf2db619f9b669 [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 ef35553d530452ad6aa43832c8bc8ff76898181a)