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

Issue 1357273004: Check that element type correct in vector insert element. (Closed)

Created:
5 years, 3 months ago by Karl
Modified:
5 years, 3 months ago
Reviewers:
Jim Stichnoth, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Check that element type correct in vector insert element. Fixes bug where pnacl-sz was not checking if the inserted type matched the element type of the corresponding vector. Also fixes operand look up (within a function) to error recover rather than always die with a fatal error. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4313 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=43632b954abab0a7dcca3441a5e9239be98f6328

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -7 lines) Patch
M src/PNaClTranslator.cpp View 1 2 chunks +15 lines, -1 line 0 comments Download
A + tests_lit/parse_errs/Inputs/insertelt-wrong-type.tbc View 2 chunks +13 lines, -6 lines 0 comments Download
A tests_lit/parse_errs/insertelt-wrong-type.test View 1 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Karl
5 years, 3 months ago (2015-09-21 21:33:57 UTC) #2
Jim Stichnoth
lgtm https://codereview.chromium.org/1357273004/diff/1/src/PNaClTranslator.cpp File src/PNaClTranslator.cpp (right): https://codereview.chromium.org/1357273004/diff/1/src/PNaClTranslator.cpp#newcode2298 src/PNaClTranslator.cpp:2298: StrBuf << "Element type " << Ice::typeString(Elt->getType()) May ...
5 years, 3 months ago (2015-09-21 21:39:54 UTC) #3
Karl
Committed patchset #2 (id:20001) manually as 43632b954abab0a7dcca3441a5e9239be98f6328 (presubmit successful).
5 years, 3 months ago (2015-09-21 22:32:34 UTC) #4
Karl
5 years, 3 months ago (2015-09-21 22:32:47 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/1357273004/diff/1/src/PNaClTranslator.cpp
File src/PNaClTranslator.cpp (right):

https://codereview.chromium.org/1357273004/diff/1/src/PNaClTranslator.cpp#new...
src/PNaClTranslator.cpp:2298: StrBuf << "Element type " <<
Ice::typeString(Elt->getType())
On 2015/09/21 21:39:54, stichnot wrote:
> May want to use the string "insertelement" in the error message.  I think that
> style is used elsewhere.

Done.

Powered by Google App Engine
This is Rietveld 408576698