Bug #79430 [Dup]: Handling signed char on Big endian arch

From: Date: Mon, 30 Mar 2020 11:31:38 +0000
Subject: Bug #79430 [Dup]: Handling signed char on Big endian arch
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226341@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79430&edit=1 ID: 79430 Updated by: cmb@php.net Reported by: vibhutisawant18 at gmail dot com Summary: Handling signed char on Big endian arch Status: Duplicate Type: Bug Package: EXIF related Operating System: Ubuntu 16.04 PHP Version: master-Git-2020-03-30 (Git) Assigned To: cmb Block user comment: N Private report: N New Comment: Duplicate of bug #79336. Previous Comments: ------------------------------------------------------------------------ [2020-03-30 11:31:38] cmb@php.net Duplicate of bug #79336. ------------------------------------------------------------------------ [2020-03-30 04:57:00] vibhutisawant18 at gmail dot com Description: ------------ This bug is related to https://bugs.php.net/bug.php?id=79336. char data type is signed(-128 to 127) by default on x86 arch whereas char is unsigned(0 to 255) by default on s390x. In function static float php_ifd_get_float(char *data) of php-src/ext/exif/exif.c ,the 3rd byte (data[2]) is referring to -8(Hex: fffffff8 ),where as its referred to 248 (Hex: f8) on s390x as char is treated as unsigned char. could you please guide us on what could possibly help to tackle the above scenario? ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79430&edit=1

« previous php.bugs (#226341) next »