mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
script: don't read past the end
This commit is contained in:
parent
a94496fbb6
commit
be6d87aa60
@ -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…
Reference in New Issue
Block a user