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
 [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 Dec 30 14:01:28 2024 UTC