Skip to content

Commit 0137fee

Browse files
committed
resolves Yeraze#77: attachment size limit too small
1 parent 24fe30e commit 0137fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ytnef.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ int TNEFParse(TNEFStruct *TNEF) {
11801180
printf("ERROR: Field with size of 0\n");
11811181
return YTNEF_ERROR_READING_DATA;
11821182
}
1183-
PREALLOCCHECK(size, 1000000);
1183+
PREALLOCCHECK(size, 500*1024*1024); // Max attachment size 500MiB
11841184
data = calloc(size, sizeof(BYTE));
11851185
ALLOCCHECK(data);
11861186
if (TNEFRawRead(TNEF, data, size, &header_checksum) < 0) {

0 commit comments

Comments
 (0)