|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79430 Handling signed char on Big endian arch
Submitted: 2020-03-30 04:57 UTC Modified: 2020-03-30 11:31 UTC
From: vibhutisawant18 at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: EXIF related
PHP Version: master-Git-2020-03-30 (Git) OS: Ubuntu 16.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: vibhutisawant18 at gmail dot com
New email:
PHP Version: OS:


 [2020-03-30 04:57 UTC] vibhutisawant18 at gmail dot com
This bug is related to

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-03-30 11:31 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-03-30 11:31 UTC]
Duplicate of bug #79336.
 [2020-03-30 11:31 UTC]
Duplicate of bug #79336.
 [2020-05-15 07:20 UTC] vibhutisawant18 at gmail dot com
Can this issue be closed? as it got fixed in Bug 79336(
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 09:01:28 2024 UTC