mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
script: don't read past the end
This commit is contained in:
parent
a94496fbb6
commit
be6d87aa60
1 changed files with 2 additions and 1 deletions
|
@ -839,6 +839,7 @@ public:
|
||||||
itBegin = it;
|
itBegin = it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (itBegin != scriptCode.end())
|
||||||
s.write((char*)&itBegin[0], it-itBegin);
|
s.write((char*)&itBegin[0], it-itBegin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue