Fix loading large workflow embedded in webp (#777)

* Fix loading large workflow embedded in webp

* Update test expectations [skip ci]

* nit

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-09-11 10:12:01 +09:00
committed by GitHub
parent 15758101aa
commit 06a05cb283
4 changed files with 13 additions and 10 deletions

View File

@@ -50,8 +50,8 @@ function parseExifData(exifData) {
let value
if (type === 2) {
// ASCII string
value = String.fromCharCode(
...exifData.slice(valueOffset, valueOffset + numValues - 1)
value = new TextDecoder('utf-8').decode(
exifData.subarray(valueOffset, valueOffset + numValues - 1)
)
}