You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
528 B
18 lines
528 B
index 8a95fb9..7797d1f 100644
|
|
--- a/wordole.c
|
|
+++ b/wordole.c
|
|
@@ -259,6 +259,11 @@ bGetPPS(FILE *pFile,
|
|
}
|
|
tNameSize = (size_t)usGetWord(0x40, aucBytes);
|
|
tNameSize = (tNameSize + 1) / 2;
|
|
+ if (tNameSize >= sizeof(atPPSlist[0].szName)) {
|
|
+ werr(0, "PPS %d appears to be invalid.", iIndex);
|
|
+ atPPSlist = xfree(atPPSlist);
|
|
+ return FALSE;
|
|
+ }
|
|
vName2String(atPPSlist[iIndex].szName, aucBytes, tNameSize);
|
|
atPPSlist[iIndex].ucType = ucGetByte(0x42, aucBytes);
|
|
if (atPPSlist[iIndex].ucType == 5) {
|
|
--
|
|
2.1.2
|