php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75480 magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
Submitted: 2017-11-03 12:12 UTC Modified: 2017-11-03 14:59 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: spam2 at rhsoft dot net Assigned:
Status: Wont fix Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git) OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [2017-11-03 12:12 UTC] spam2 at rhsoft dot net
Description:
------------
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c: In function 'magic_stream':
/home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:307:3: warning: argument 1 null where non-null expected [-Wnonnull]
   (void) utimes(name, utsbuf); /* don't care if loses */
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php_streams.h:25:0,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/main/php.h:405,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/config.h:1,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/file.h:36,
                 from /home/builduser/rpmbuild/BUILD/php-7.1.11/ext/fileinfo/libmagic/magic.c:28:
/usr/include/sys/time.h:135:12: note: in a call to function 'utimes' declared here
 extern int utimes (const char *__file, const struct timeval __tvp[2])


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-03 14:58 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:58 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 14:59 UTC] kalle@php.net
This should be reported and fixed upstream in libmagic
 [2017-11-03 15:14 UTC] spam2 at rhsoft dot net
PHP is using a forked libmagic hence bugs of wrong detected files exists over many years
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC