commit | 02c698d93f627e92795234eb8a78fad585a2f191 | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Fri Oct 24 15:41:59 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Dec 09 19:34:08 2014 -0800 |
tree | 0d63eee98d606adaa419c6b5c4b42396192fc482 | |
parent | cbdf4a95aa3120486f63954368a00c7797e573ee [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. (cherry-pick of 4cafe2ff89b49329e0e880900195d8e061bd3750.) Bug: 17705619 Change-Id: I226320498dcb750ec6cde84411c7fe0774c9cab7