Bug #68866 [Com]: Incorrect sizeof
| From: | mikezoneusa at gmail dot com | Date: | Thu, 06 Apr 2023 05:48:17 +0000 |
| Subject: | Bug #68866 [Com]: Incorrect sizeof | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-244119@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68866&edit=1
ID: 68866
Comment by: mikezoneusa at gmail dot com
Reported by: bugreports at internot dot info
Summary: Incorrect sizeof
Status: Open
Type: Bug
Package: *General Issues
Operating System: Linux Ubuntu 14.04
PHP Version: master-Git-2015-01-20 (Git)
Block user comment: N
Private report: N
New Comment:
Lifestyle Shopping Store are sharing latest news about lifestyle, fashion, shopping, clothing,
wedding, dress etc. More info to visit: (https://lifestyleshoppingstore.com)github.com
Previous Comments:
------------------------------------------------------------------------
[2015-01-28 16:17:08] laruence@php.net
hmm, sal is *** pointer... so...
------------------------------------------------------------------------
[2015-01-20 19:25:26] 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,
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68866&edit=1