A fuzzer attacked i386-dos32.watcom.le

This commit is contained in:
John Reiser
2023-07-06 20:25:14 -07:00
committed by Markus F.X.J. Oberhumer
parent 8d41ae09c8
commit 707fb55625
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -146,6 +146,8 @@ unsigned LeFile::getImageSize() const {
void LeFile::readImage() {
soimage = pages * mps;
if (!soimage) // late detection, but protect against .alloc(0)
throwCantPack("no soimage");
mb_iimage.alloc(soimage);
mb_iimage.clear();
iimage = mb_iimage; // => now a SPAN_S