From 6c4ad2154ce2cd8846d28a204a446d1e9588ef2b Mon Sep 17 00:00:00 2001 From: Aleksandr Kadykov Date: Wed, 27 Nov 2024 11:55:47 +0000 Subject: [PATCH] Add note about upstream fix in image-size vendored module --- packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts b/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts index 11a1e0b43d3a..763cfc98c096 100644 --- a/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts +++ b/packages/astro/src/assets/utils/vendor/image-size/types/jpg.ts @@ -122,6 +122,7 @@ export const JPG: IImage = { // Every JPEG block must begin with a 0xFF if (input[i] !== 0xff) { + // Change from upstream: fix non-0xFF blocks skipping input = input.slice(i) continue }