View Issue Details

IDProjectCategoryView StatusLast Update
0000692fileGeneralpublic2025-11-06 12:22
Reporteradepasquale Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version5.41 
Summary0000692: RFC 822 file identified as "data" after "FE FF 00"
DescriptionI have an email file with a PDF attachment in plaintext encoding.

"Received:" is at offset zero so it should be recognized as RFC 822. The PDF within the email contains some null bytes in the /Producer tag.

Note that the issue happens after the FEFF00 sequence. The first FEFF does not cause misidentification
Steps To Reproduce$ file sample.eml
sample.eml: data

$ xxd -l 0x1af sample.eml | xxd -r | file -
/dev/stdin: RFC 822 mail text, ISO-8859 text, with CRLF line terminators

$ xxd -l 0x1b0 sample.eml | xxd -r | file -
/dev/stdin: data
Additional Information $ xxd -s 0x17c sample.eml
0000017c: 2550 4446 2d31 2e34 0d0a 3120 3020 6f62 %PDF-1.4..1 0 ob
0000018c: 6a0d 0a3c 3c0d 0a2f 4372 6561 746f 7220 j..<<../Creator
0000019c: 28fe ff29 0d0a 2f50 726f 6475 6365 7220 (..)../Producer
000001ac: 28fe ff00 5100 7400 2000 3500 2e00 3500 (...Q.t. .5...5.
000001bc: 2e00 3129 0d0a 3e3e 0d0a ..1)..>>..
TagsNo tags attached.

Activities

adepasquale

2025-11-06 12:22

reporter  

sample.eml (454 bytes)

Issue History

Date Modified Username Field Change
2025-11-06 12:22 adepasquale New Issue
2025-11-06 12:22 adepasquale File Added: sample.eml