script: don't read past the end

pull/196/head
Cory Fields 10 years ago
parent a94496fbb6
commit be6d87aa60

@ -839,7 +839,8 @@ public:
itBegin = it; 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 */ /** Serialize an input of txTo */

Loading…
Cancel
Save