php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3952 shm_attach crashes httpd-process, if shmat fails
Submitted: 2000-03-28 18:31 UTC Modified: 2005-03-31 16:13 UTC
From: baumert at pilot-webdesign dot de Assigned:
Status: Wont fix Package: Reproducible Crash
PHP Version: 3.0.15 OS: Linux 2.0.36, 2.2.14
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: baumert at pilot-webdesign dot de
New email:
PHP Version: OS:

 

 [2000-03-28 18:31 UTC] baumert at pilot-webdesign dot de
shm_attach asks, if the return value of shmat is zero. This never happens. 
The error-condition return value is -1.

So just change 162 from 
  if((shm_ptr = shmat(shm_id,NULL,0))==NULL) {

to 

  if((shm_ptr = shmat(shm_id,NULL,0))==-1) {

Greetings

Florian

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 07 23:01:27 2024 UTC