Skip to content

Commit e31744e

Browse files
committed
Conflicts
1 parent 9050343 commit e31744e

File tree

8 files changed

+1743
-1754
lines changed

8 files changed

+1743
-1754
lines changed

Diff for: src/core/jpeg_stream.js

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class JpegStream extends DecodeStream {
9494
}
9595
}
9696
const jpegImage = new JpegImage(jpegOptions);
97-
9897
jpegImage.parse(bytes);
9998
const data = jpegImage.getData({
10099
width: this.drawWidth,

Diff for: src/core/jpg.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ class JpegImage {
828828
case 0xffee: // APP14
829829
case 0xffef: // APP15
830830
case 0xfffe: // COM (Comment)
831-
offset = newOffset;
831+
const appData = readDataBlock();
832832

833833
if (fileMarker === 0xffe0) {
834834
// 'JFIF\x00'

Diff for: src/display/canvas.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3250,4 +3250,4 @@ for (const op in OPS) {
32503250
}
32513251
}
32523252

3253-
export { CanvasGraphics };
3253+
export { CanvasGraphics };

Diff for: test/pdfs/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -679,4 +679,3 @@
679679
!issue18036.pdf
680680
!issue18894.pdf
681681
!bug1922766.pdf
682-
!issue18956.pdf

Diff for: test/pdfs/issue18956.pdf

-8.99 KB
Binary file not shown.

Diff for: test/test_manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10742,4 +10742,4 @@
1074210742
"rounds": 1,
1074310743
"type": "eq"
1074410744
}
10745-
]
10745+
]

Diff for: web/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
22362236
// start accepting URLs from foreign origin -- CORS headers on the remote
22372237
// server must be properly configured.
22382238
if (fileOrigin !== viewerOrigin) {
2239-
// throw new Error("file origin does not match viewer's");
2239+
throw new Error("file origin does not match viewer's");
22402240
}
22412241
} catch (ex) {
22422242
PDFViewerApplication._documentError("pdfjs-loading-error", {

0 commit comments

Comments
 (0)