php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10076 NULL entry calling
Submitted: 2001-03-30 10:25 UTC Modified: 2001-06-01 16:10 UTC
From: vgo at nrd dot lt Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0 Latest CVS (30/03/2001) OS: Windows 2000
Private report: No CVE-ID: None
 [2001-03-30 10:25 UTC] vgo at nrd dot lt
File output.c

No checks whether it is possible to call this php_body_write or not. During shutdown of server calling from oci_debug( ... ) causes crash on the Win32 system by coalling NULL entry.
 
PHPAPI int php_body_write(const char *str, uint str_length)
{
 OLS_FETCH();
 return OG(php_body_write)(str, str_length); 
}
 
sugest to change it to:
 if( OG(php_body_write) )
 {
    return OG(php_body_write)(str, str_length); 
 }
 return 0; 

 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-07 18:02 UTC] zeev@php.net
Can you please check if this still happens in the latest CVS?
 [2001-06-01 16:10 UTC] sniper@php.net
No feedback. Assumed fixed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC