diff options
author | Tao Bao <tbao@google.com> | 2017-03-23 21:05:31 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-03-23 21:05:31 +0100 |
commit | ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2 (patch) | |
tree | 0a2f87253417f278f4908a79a31c9d3c46390773 | |
parent | Merge "Fixed scanf modifier" am: 577c668861 am: d414ae465e (diff) | |
parent | Merge "Checking unsigned variable less than zero" am: 0d264bf088 (diff) | |
download | android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar.gz android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar.bz2 android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar.lz android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar.xz android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.tar.zst android_bootable_recovery-ef888d1b55c0f1c27e89743dd43dbf3b88aca1c2.zip |
Diffstat (limited to '')
-rw-r--r-- | asn1_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1_decoder.cpp b/asn1_decoder.cpp index a9dfccc58..285214f16 100644 --- a/asn1_decoder.cpp +++ b/asn1_decoder.cpp @@ -19,14 +19,14 @@ #include <stdint.h> int asn1_context::peek_byte() const { - if (length_ <= 0) { + if (length_ == 0) { return -1; } return *p_; } int asn1_context::get_byte() { - if (length_ <= 0) { + if (length_ == 0) { return -1; } |