diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-07-26 21:42:06 -0400 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2021-07-27 13:24:03 +0000 |
commit | b5f09960717c22c84cb555c55020bafb9343a694 (patch) | |
tree | d6c1c43d01a2167e4097275f658395ade14a75ad | |
parent | 04206a96c8c15bd4cdb655ed4e3b27e5cccb0f05 (diff) |
Don't check for FEC offset if fec is disabled
Test: th
Bug: 194661607
Bug: 194779085
Change-Id: I0e37136313914f1ee9a4eae0e5db59807adc7dc5
Merged-In: I0e37136313914f1ee9a4eae0e5db59807adc7dc5
-rw-r--r-- | payload_consumer/filesystem_verifier_action.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/payload_consumer/filesystem_verifier_action.cc b/payload_consumer/filesystem_verifier_action.cc index 22c8e0bd..8b39f6d0 100644 --- a/payload_consumer/filesystem_verifier_action.cc +++ b/payload_consumer/filesystem_verifier_action.cc @@ -358,8 +358,10 @@ void FilesystemVerifierAction::StartPartitionHashing() { offset_ = 0; filesystem_data_end_ = partition_size_; - CHECK_LE(partition.hash_tree_offset, partition.fec_offset) - << " Hash tree is expected to come before FEC data"; + if (partition.fec_offset > 0) { + CHECK_LE(partition.hash_tree_offset, partition.fec_offset) + << " Hash tree is expected to come before FEC data"; + } if (partition.hash_tree_offset != 0) { filesystem_data_end_ = partition.hash_tree_offset; } else if (partition.fec_offset != 0) { |