Merge pull request #5821 from Snuffleupagus/bug-1140761
Correctly detect the presence of the Adobe specific APP14 JPEG marker (bug 1140761)
This commit is contained in:
commit
70608be351
@ -669,9 +669,9 @@ var JpegImage = (function jpegImage() {
|
||||
if (fileMarker === 0xFFEE) {
|
||||
if (appData[0] === 0x41 && appData[1] === 0x64 &&
|
||||
appData[2] === 0x6F && appData[3] === 0x62 &&
|
||||
appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
|
||||
appData[4] === 0x65) { // 'Adobe'
|
||||
adobe = {
|
||||
version: appData[6],
|
||||
version: (appData[5] << 8) | appData[6],
|
||||
flags0: (appData[7] << 8) | appData[8],
|
||||
flags1: (appData[9] << 8) | appData[10],
|
||||
transformCode: appData[11]
|
||||
|
1
test/pdfs/bug1140761.pdf.link
Normal file
1
test/pdfs/bug1140761.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://bugzilla.mozilla.org/attachment.cgi?id=8574416
|
@ -1608,6 +1608,15 @@
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "bug1140761",
|
||||
"file": "pdfs/bug1140761.pdf",
|
||||
"md5": "b74eced7634d4f248dc6265f8225d432",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 1,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "bug1011159",
|
||||
"file": "pdfs/bug1011159.pdf",
|
||||
"md5": "4532e22deb92d4cd2992d0cfe255582a",
|
||||
|
Loading…
x
Reference in New Issue
Block a user