]> git.eshelyaron.com Git - emacs.git/commit
Don't have exif bugging out on short strings
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Mar 2020 15:15:04 +0000 (16:15 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Mar 2020 15:17:48 +0000 (16:17 +0100)
commitd801d1d8ccae3d8c9ea3d55c27ae16cd28212734
treecf25ad2557d091abcc167722bd841512230bef65
parentbed04c502caa8cf0365a0808adb70451b3d8761a
Don't have exif bugging out on short strings

* lisp/image/exif.el (exif--direct-ascii-value): New function
(bug#40127).
(exif--parse-directory): Use it to get the correct values for
in-directory (i.e., shorter than 4 octets) strings.
lisp/image/exif.el
test/data/image/black-short.jpg [new file with mode: 0644]
test/lisp/image/exif-tests.el