commit | 94b9956824ad302da344bf43e8040c28d8b002ab | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Oct 09 16:13:38 2018 +0100 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sat Oct 20 00:18:34 2018 +0000 |
tree | 2a3b56997a1c7a307394d4319f49315815d3e2b0 | |
parent | ecc27018512ab452192cf074304d6b10ea41b70e [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)