fix: tighten native image injection (#1098)

Thanks @tyler6204.

Co-authored-by: Tyler Yust <tyler6204@users.noreply.github.com>
This commit is contained in:
Peter SteinbergerandTyler Yust committed 2026-01-18 08:15:21 +00:00
1 parent ddcc05f5f4
commit 8b57f519c3
7 files changed
+81 -119

No files matched your search

-1
View File
@@ -59,7 +59,6 @@ function readJpegExifOrientation(buffer: Buffer): number | null {
// APP1 marker (EXIF)
if (marker === 0xe1) {
const segmentLength = buffer.readUInt16BE(offset + 2);
const exifStart = offset + 4;
// Check for "Exif\0\0" header