Re: com php-src: Fixed bug #66242 (don't assume char is signed): ext/fileinfo/libmagic/apprentice.c

From: Date: Wed, 15 Oct 2014 05:16:15 +0000
Subject: Re: com php-src: Fixed bug #66242 (don't assume char is signed): ext/fileinfo/libmagic/apprentice.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82312@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 21/09/2014 01:39, Ard Biesheuvel a écrit : > Commit: e64da8c20df3ec28bd2417924b207b870e9ab99f Author: Ard > Biesheuvel <ard.biesheuvel@linaro.org> Sat, 20 Sep 2014 > 16:32:31 -0700 Parents: 00525b824af4265e7fc74d3655a04da9c4c667f7 > Branches: PHP-5.4 PHP-5.5 PHP-5.6 master > > Link: > > http://git.php.net/?p=php-src.git;a=commitdiff;h=e64da8c20df3ec28bd2417924b207b870e9ab99f > > Log: Fixed bug #66242 (don't assume char is signed) > > This fixes a bug in libmagic where a cast to 'char' is assumed to > result in sign extension to occur. However, unqualified 'char' is > unsigned on architectures such as ARM, so the cast needs to be to > 'signed char' explicitly. > > Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> > > Bugs: https://bugs.php.net/66242 This bug should really be fixed upstream (libmagic), else, on next update it will be very probably lost. See https://github.com/file/file I have send this information to upstream. Remi. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlQ+Ax8ACgkQYUppBSnxahid6ACeO3aoWgbLwb3T5tkFgWkQa+1N 7K8AoIPehF6q/C2/tDpoMXXPals7Lh2y =zO8V -----END PGP SIGNATURE-----

« previous php.cvs (#82312) next »