Check pubkeyBuf before pubkeyBuf.length
This commit is contained in:
parent
e5e783fbf9
commit
febbcc6a6e
@ -255,6 +255,7 @@ Script.prototype.isPublicKeyHashIn = function(inaccurate) {
|
||||
if (signatureBuf &&
|
||||
signatureBuf.length &&
|
||||
signatureBuf[0] === 0x30 &&
|
||||
pubkeyBuf &&
|
||||
pubkeyBuf.length
|
||||
) {
|
||||
var version = pubkeyBuf[0];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user