Closed Bug 1692449 Opened 4 years ago Closed 4 years ago

pdf font data corruption due to security check?

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 85
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: dave.hart, Unassigned)

Details

Attachments

(1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

We generate PDF/A output. This results in the font data being included in the content. There is a rare occasion when the compressed font information contains the sequence of characters 'fopen'.

The web browser reports there may be issues with the document, however when downloading it replaces the character string fopen with XXXXX, which destroys the font information.

Unfortunately due to GDPR I cannot provide the PDF itself, however I hope there is enough explanation here to describe the bug.

Actual results:

Compressed font data is returned as this (excerpt):

bzƒ*?Ó?ÔXXXXXð

Expected results:

Compressed font content should look like this (excerpt):

bzƒ*?Ó?ÔfoPEnð

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

I would be really surprised to find that Firefox is doing this itself -- I'm not aware of any code that would modify the content of the PDF like that. My guess is that it may be the result of some kind of "internet security software" installed on your system, or even at a network level if you're in a business environment where internet access is filtered in some way.

Can you try temporarily turning off whatever security software may be installed (Norton? Symantec? Avast? etc... I don't know what's commonly used these days) and see if that makes any difference? Do you have any add-ons in Firefox that might be trying to "protect" you? (Try restarting in Safe Mode.)

If this doesn't point to the source of the problem, can you try creating a "dummy" PDF using the same font data that you would be able to share with us for further investigation?

Flags: needinfo?(dave.hart)

After more testing I can confirm "something else" is stamping on the file. Weird, because it happens on a variety of machines..

I initially thought it was a PDF issue within Firefox as Firefox displays the PDF correctly but it breaks during download. I guess this is something to do with how Firefox renders PDFs...

but - yeah you can close this, cheers!

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(dave.hart)
Resolution: --- → INVALID
Attachment #9202858 - Attachment filename: blank.pdf → dontuse.pdf
Attachment #9202858 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: