]> git.eshelyaron.com Git - emacs.git/commit
Fix potential buffer overflow (bug#50767)
authorAlan Third <alan@idiocy.org>
Mon, 4 Oct 2021 21:35:41 +0000 (22:35 +0100)
committerAlan Third <alan@idiocy.org>
Sun, 17 Oct 2021 09:54:18 +0000 (10:54 +0100)
commit7b6fb486c2e8555a04b20e067b723ef9fdb13396
tree3abb1dd5d0f049b78c5d736aecb5294e27102129
parented9f5546aa71e0f187eaff1b2a9ccfe7772e9f5c
Fix potential buffer overflow (bug#50767)

* src/image.c (svg_load_image): Check how many bytes were actually
written to the buffer.  Don't check xmalloc return value as xmalloc
doesn't return if it fails.
src/image.c