commit | 52b4f8dca2edc801bc4fab3124ab008c3b5c1198 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Wed Oct 26 10:56:04 2022 +0200 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Wed Oct 26 10:46:04 2022 +0000 |
tree | 934f428e9c1e4321b1b76396c0590ab461435734 | |
parent | cc97f11fe689c1344bb04ab85e8bdc7baaeb3fb1 [diff] |
Fix DCHECK in ErrorDelayingOutputStream. Test: m Bug: 131173359 Change-Id: If0a3a9b502ccf66734c47138fb1351bcaa4c6cbf
diff --git a/libelffile/stream/error_delaying_output_stream.h b/libelffile/stream/error_delaying_output_stream.h index b37ff4e..7553de6 100644 --- a/libelffile/stream/error_delaying_output_stream.h +++ b/libelffile/stream/error_delaying_output_stream.h
@@ -71,8 +71,9 @@ PLOG(ERROR) << "Failed to seek in " << GetLocation() << ". Offset=" << offset << " whence=" << whence << " new_offset=" << new_offset; output_good_ = false; + } else { + DCHECK_EQ(actual_offset, new_offset); } - DCHECK_EQ(actual_offset, new_offset); } output_offset_ = new_offset; return new_offset;