Skip to content

Commit

Permalink
script: don't read past the end
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Sep 25, 2014
1 parent a94496f commit be6d87a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,8 @@ class CTransactionSignatureSerializer {
itBegin = it;
}
}
s.write((char*)&itBegin[0], it-itBegin);
if (itBegin != scriptCode.end())
s.write((char*)&itBegin[0], it-itBegin);
}

/** Serialize an input of txTo */
Expand Down

0 comments on commit be6d87a

Please sign in to comment.