commit | f83cc61c1f18420ad02fbbbef493d20508449840 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Oct 09 16:13:38 2018 +0100 |
committer | Paul Crowley <paulcrowley@google.com> | Thu Dec 06 14:17:48 2018 -0800 |
tree | 20c5693ad86f0200ea3c2c314d6a22ddda0695a6 | |
parent | 6aaedb0dcacfb0e43e89fa833004ec6203bacf1c [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