commit | 490fad67912dbef1281ebe7d943d3f95c79c370e | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Jun 13 16:39:34 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Jun 13 16:42:52 2016 -0700 |
tree | b53c1a41e71b535ff03e4308a30214f8f4d1afc3 | |
parent | b0ddae55e53c90880212caf0e19e439a3898abfd [diff] |
applypatch: Don't call inflate() when it expects zero-length output. We may have expanded_len == 0 when calling inflate(). After switching to using std::vector, it passes a nullptr buffer to inflate() and leads to Z_STREAM_ERROR. Bug: 29312140 Change-Id: Iab7c6c07a9e8488e844e7cdda76d02bd60d2ea98
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test