Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: runtime/vm/simulator_dbc.cc

Issue 2888413002: Fix off-by-one error in DBC interpreter (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/simulator_dbc.cc
diff --git a/runtime/vm/simulator_dbc.cc b/runtime/vm/simulator_dbc.cc
index a85f26d7cf5f3f0078645e224c7cf2c80d91cec7..9f1a5d68858ccb26babf33b6a1d7403d532695d1 100644
--- a/runtime/vm/simulator_dbc.cc
+++ b/runtime/vm/simulator_dbc.cc
@@ -2965,7 +2965,7 @@ RawObject* Simulator::Call(const Code& code,
if (LIKELY(start != 0)) {
const intptr_t cid = kArrayCid;
uword tags = 0;
- if (LIKELY(instance_size < RawObject::SizeTag::kMaxSizeTag)) {
+ if (LIKELY(instance_size <= RawObject::SizeTag::kMaxSizeTag)) {
tags = RawObject::SizeTag::update(instance_size, tags);
}
tags = RawObject::ClassIdTag::update(cid, tags);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698