Fix OOB access in sixel_print by ensuring that the number of chunks actually

matches the highest color used on the image, even if not defined as a color
register. From nincsnevem662 at gmail dot com in GitHub issue 4621.
This commit is contained in:
Nicholas Marriott
2025-09-07 14:53:08 +01:00
parent 3d6954f0f0
commit a7a94cb86f
2 changed files with 13 additions and 6 deletions

View File

@@ -998,7 +998,6 @@ fi
AC_MSG_RESULT($DEFAULT_LOCK_CMD)
AC_SUBST(DEFAULT_LOCK_CMD)
# Save our CFLAGS/CPPFLAGS/LDFLAGS for the Makefile and restore the old user
# variables.
AC_SUBST(AM_CPPFLAGS)