php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7726 missing SUN_LEN and msg_flags in struct msghdr
Submitted: 2000-11-09 10:42 UTC Modified: 2001-06-02 21:00 UTC
From: p dot pastori at acsys dot it Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.3pl1 OS: IRIX 6.5 (6.5.8m)
Private report: No CVE-ID: None
 [2000-11-09 10:42 UTC] p dot pastori at acsys dot it
On this OS the struct msghdr has not the msg_flags field, i patched this simply avoiding any assignement to this field (that is commenting lines 1621 and 1680 in ext/sockets/sockets.c) and assigning to 0 the value read from that field (lines 1641 and 1698): i hope no critical data are expected to be read from that field but i have still to test for.
The last thing about this source (ext/sockets/sockets.c) is that is totally missing any definition for the SUN_LEN symbol. After a little study i have patched this by simply introducing a define (AAAARGH) like the following:
#define SUN_LEN(a)    sizeof(*a)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 21:00 UTC] sniper@php.net
This should be fixed with PHP 4.0.6, please try the 
latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

-Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC