php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8306 incorrect error-detection for shmat();
Submitted: 2000-12-17 22:15 UTC Modified: 2000-12-18 07:23 UTC
From: Robert dot Siemer at gmx dot de Assigned:
Status: Closed Package: Semaphore related
PHP Version: 4.0.3pl1 OS: Linux 2.4.0-test9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 7 = ?
Subscribe to this entry?

 
 [2000-12-17 22:15 UTC] Robert dot Siemer at gmx dot de
In
/usr/src/php-4.0.3pl1/ext/sysvshm/sysvshm.c 
is one call to shmat(). The return value is compared against NULL instead of -1 to detect an error.
At least Linux returns (int) -1 on errors.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-18 07:23 UTC] hholzgra@php.net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC