exif: Allow more spacing characters in strings
authorCameron Moore <moorereason@gmail.com>
Sat, 13 Mar 2021 15:21:30 +0000 (09:21 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 13 Mar 2021 20:20:10 +0000 (21:20 +0100)
commit0a2ab3f8feb961f8394b1f9964fab36bfa468027
tree15f7f41a2bb9f657de2d6c39e5c948a8a9281492
parent4d24e2a3261d8c7dc0395db3ac4de89ebb0974a5
exif: Allow more spacing characters in strings

The root cause of issue #8079 was a non-breaking space (U+0160).
`unicode.IsPrint` only allows the ASCII space (U+0020).  Be more lenient
by using `unicode.IsGraphic` instead.

Fixes #8079
resources/images/exif/exif.go
resources/images/exif/exif_test.go
resources/testdata/iss8079.jpg [new file with mode: 0644]