mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
script: don't read past the end
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user