Browse Source

script: don't read past the end

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

3
src/script/interpreter.cpp

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