Bug #68866 [Opn]: Incorrect sizeof

From: Date: Wed, 28 Jan 2015 16:17:08 +0000
Subject: Bug #68866 [Opn]: Incorrect sizeof
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190275@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 Updated by: laruence@php.net 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: hmm, sal is *** pointer... so... Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#190275) next »