﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
134	sizeof(NGX_INT32_LEN) triggers out of memory	Vincent Lee	somebody	"FILE:nginx/trunk/src/os/win32/ngx_shmem.c, LINES:18

Index: ngx_shmem.c
===================================================================
--- ngx_shmem.c	(revision 4567)
+++ ngx_shmem.c	(working copy)
@@ -15,7 +15,7 @@
     u_char    *name;
     uint64_t   size;
 
-    name = ngx_alloc(shm->name.len + 2 + sizeof(NGX_INT32_LEN), shm->log);
+    name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log);
     if (name == NULL) {
         return NGX_ERROR;
     }

the NGX_INT32_LEN finger out the length of INT32 string. don't need to sizeof again.
if call sizeof again, ngx_alloc will get a smaller buffer, and then will be out of memory."	defect	closed	major	1.2.0	other	1.1.x	fixed	out of memory		windows	nginx version: nginx/1.1.16
