Out-of-bounds in 3DS read: quick fix for 1.6
parent
154dff1457
commit
2e05e96d7a
|
@ -97,6 +97,8 @@ static string readString(ifstream& in)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s[maxLength - 1] = '\0'; // prevent out-of-bounds read
|
||||||
|
|
||||||
return string(s);
|
return string(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue