php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68866 Incorrect sizeof
Submitted: 2015-01-20 19:25 UTC Modified: 2015-01-28 16:17 UTC
From: bugreports at internot dot info Assigned:
Status: Open Package: *General Issues
PHP Version: master-Git-2015-01-20 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-01-20 19:25 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /main/network.c:


235        *sal = safe_emalloc((n + 1), sizeof(*sal), 0);

Should it be sizeof(**sal)? Or perhaps, sal = safe[..]?

Thanks,


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-28 16:17 UTC] laruence@php.net
hmm, sal is *** pointer... so...
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 18:01:24 2021 UTC