Skip to content

Commit

Permalink
resolves Yeraze#77: attachment size limit too small
Browse files Browse the repository at this point in the history
  • Loading branch information
ohwgiles committed Aug 25, 2019
1 parent 24fe30e commit 0137fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ytnef.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ int TNEFParse(TNEFStruct *TNEF) {
printf("ERROR: Field with size of 0\n");
return YTNEF_ERROR_READING_DATA;
}
PREALLOCCHECK(size, 1000000);
PREALLOCCHECK(size, 500*1024*1024); // Max attachment size 500MiB
data = calloc(size, sizeof(BYTE));
ALLOCCHECK(data);
if (TNEFRawRead(TNEF, data, size, &header_checksum) < 0) {
Expand Down

0 comments on commit 0137fee

Please sign in to comment.