Bug 65899 - [PATCH] MAPIAttribute OutOfMemory caused by malformed TNEF file
Summary: [PATCH] MAPIAttribute OutOfMemory caused by malformed TNEF file
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HMEF (show other bugs)
Version: unspecified
Hardware: All Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-18 21:43 UTC by Craig Haft
Modified: 2022-02-19 11:29 UTC (History)
0 users



Attachments
Patch, updated test and sample tnef file (1.38 KB, application/x-gzip)
2022-02-18 21:43 UTC, Craig Haft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Haft 2022-02-18 21:43:51 UTC
Created attachment 38203 [details]
Patch, updated test and sample tnef file

A file with invalid TNEF data caused server to crash with Out Of Memory error.
When MAPAttribute was parsing the file, The file that cause the problem appeared to have a multivalue attribute with 873267203 values.  Ran out of memory trying to add these entries to the attrs array.  MAPIAttribute was not checking for error returns from IOUtils.readFully.

Including a small (53 byte) test file.
Comment 1 PJ Fanning 2022-02-19 11:29:12 UTC
thanks - merged with r1898208