script: don't read past the end
This commit is contained in:
1 parent
a94496fbb6
commit
be6d87aa60
1 file changed
+1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user