Index: src/trusted/validator_x86/nc_inst_iter.c |
=================================================================== |
--- src/trusted/validator_x86/nc_inst_iter.c (revision 4944) |
+++ src/trusted/validator_x86/nc_inst_iter.c (working copy) |
@@ -74,8 +74,12 @@ |
free(iter); |
} |
+NaClInstState* NaClInstIterGetUndecodedState(NaClInstIter* iter) { |
+ return &iter->buffer[iter->buffer_index]; |
+} |
+ |
NaClInstState* NaClInstIterGetState(NaClInstIter* iter) { |
- NaClInstState* state = &iter->buffer[iter->buffer_index]; |
+ NaClInstState* state = NaClInstIterGetUndecodedState(iter); |
if (NULL == state->inst) { |
NaClDecodeInst(iter, state); |
} |