diff options
author | Hridya Valsaraju <hridya@google.com> | 2019-04-03 17:57:00 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2019-04-03 18:14:14 -0700 |
commit | 1a6f6feff425edf6076269c0f971675fa41de56c (patch) | |
tree | fad737f7740e662a47e86eec0c4c0326ebae4353 /libsparse/sparse.cpp | |
parent | aaee497db2b74e55dc1779abb41b294afb954349 (diff) |
Open image files in binary mode
This is required for read() to function correctly
in Windows since it behaves differently in text mode and
binary mode and may cause unpredictable behavior depending
on the contents of the image file.
Bug: 129281908
Test: fastboot.exe flashall
Change-Id: I64370af44a050bafea60ff1b0b2be18cc531480a
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions