Browse Source

script: don't read past the end

pull/145/head
Cory Fields 10 years ago
parent
commit
be6d87aa60
  1. 3
      src/script/interpreter.cpp

3
src/script/interpreter.cpp

@ -839,7 +839,8 @@ public:
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 */

Loading…
Cancel
Save