commit | 4cafe2ff89b49329e0e880900195d8e061bd3750 | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Fri Oct 24 15:41:59 2014 -0700 |
committer | Sami Tolvanen <samitolvanen@google.com> | Wed Oct 29 11:06:47 2014 -0700 |
tree | fe2d54a633cdd8508362e41c958e6ee3c3c1d8d9 | |
parent | 47a919c6fb1cb3f4d372758ed9a02b02bbac911c [diff] |
Fix verity on system partitions larger than 2G If the system partition is larger than 2G, the device fails to read verity metadata, because fseek accepts only a 32-bit signed offset. Switch from fseek to lseek64 to allow seeking using a 64-bit offset, which solves the problem. At the same time, move away from stdio in the function. Bug: 17705619 Change-Id: I226320498dcb750ec6cde84411c7fe0774c9cab7