std/jpeg: ignore too-short COM or APPn markers

This commit is contained in:
Nigel Tao committed 2024-08-25 13:46:16 +10:00
1 parent 408ab25f04
commit 6a9347843b
6 files changed
+94 -5

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ func main1() error {
}
func posError(pos int, lenSrc int) error {
return fmt.Errorf("bad JPEG, pos = 0x%08X = %10d, len(src) is 0x%08X = %10d",
return fmt.Errorf("bad JPEG, pos = 0x%08X = %10d, len(src) = 0x%08X = %10d",
pos, pos, lenSrc, lenSrc)
}