commit | d78181b82ab48d6606ca70f9ce1dc14f14b43859 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Oct 09 16:13:38 2018 +0100 |
committer | Rubin Xu <rubinxu@google.com> | Wed Oct 10 14:14:26 2018 +0100 |
tree | 6e2de05d986a7ba52c2d5dad64e6a268847d86c9 | |
parent | c5aca904658a5a96151b198668b0472dc5cf829f [diff] |
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