mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-21 16:49:10 +01:00
Merge branch 'openssl' into bug_fixes
This commit is contained in:
commit
b922809c9d
1 changed files with 5 additions and 0 deletions
|
@ -208,6 +208,11 @@ namespace data
|
||||||
uint16_t fileNameLength, extraFieldLength;
|
uint16_t fileNameLength, extraFieldLength;
|
||||||
s.read ((char *)&fileNameLength, 2);
|
s.read ((char *)&fileNameLength, 2);
|
||||||
fileNameLength = le16toh (fileNameLength);
|
fileNameLength = le16toh (fileNameLength);
|
||||||
|
if ( fileNameLength > 255 ) {
|
||||||
|
// too big
|
||||||
|
LogPrint(eLogError, "Reseed: SU3 fileNameLength too large: ", fileNameLength);
|
||||||
|
return numFiles;
|
||||||
|
}
|
||||||
s.read ((char *)&extraFieldLength, 2);
|
s.read ((char *)&extraFieldLength, 2);
|
||||||
extraFieldLength = le16toh (extraFieldLength);
|
extraFieldLength = le16toh (extraFieldLength);
|
||||||
char localFileName[255];
|
char localFileName[255];
|
||||||
|
|
Loading…
Add table
Reference in a new issue