]> git.eshelyaron.com Git - emacs.git/commit
When debugging image.c, abort if silent truncation
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 22 Jan 2025 06:16:22 +0000 (22:16 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 Jan 2025 10:25:06 +0000 (11:25 +0100)
commit6819f58d018246f298f26e1ba8594d833e798345
treeb5c78a4833547452ecc62fdc228f833932b16a65
parentd3733a3b20ec4d3e4894b0263e2291ac57253028
When debugging image.c, abort if silent truncation

* src/image.c (image_build_heuristic_mask, png_load_body):
Abort if snprintf truncated.  (If truncation is not possible
here we should use sprintf instead, as that simplifies
automatic runtime checking.)

(cherry picked from commit 8ff7338fdd05fe6d21765711327a99c87cfd7613)
src/image.c