From c0084c75663a81080031d65788578a085623e8d2 Mon Sep 17 00:00:00 2001 From: ndossche <7771979+ndossche@users.noreply.github.com> Date: Sun, 7 Jun 2026 22:39:46 +0200 Subject: [PATCH] exif: read from the correct pointer `vptr` points to the current value being iterated over, not `value`, see other switch cases. --- ext/exif/exif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/exif/exif.c b/ext/exif/exif.c index ab3948819e5b..58e6d2801055 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -2306,13 +2306,13 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c #ifdef EXIF_DEBUG php_error_docref(NULL, E_WARNING, "Found value of type single"); #endif - info_value->f = php_ifd_get_float(value); + info_value->f = php_ifd_get_float(vptr); break; case TAG_FMT_DOUBLE: #ifdef EXIF_DEBUG php_error_docref(NULL, E_WARNING, "Found value of type double"); #endif - info_value->d = php_ifd_get_double(value); + info_value->d = php_ifd_get_double(vptr); break; } }