commit | cd03df06523208b4fa4c8401a589a4f06ffedf93 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Thu Mar 23 20:02:30 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Mar 23 20:02:30 2017 +0000 |
tree | 478544d5ed51ed57b097faed5f6c5c8f870cea00 | |
parent | 8859e2aea88ccc3cce538fa6ecb19d85df0bbd03 [diff] | |
parent | 957f6491f82736f7b5197933f0c63b35474f5f12 [diff] |
Merge "Checking unsigned variable less than zero" am: 0d264bf088 am: 957f6491f8 Change-Id: If9516fdbb4798675330cc3accdc299445e64e258
diff --git a/asn1_decoder.cpp b/asn1_decoder.cpp index a9dfccc..285214f 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; }