Skip to content

Commit edb5781

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #61430 (Transposed memset() params in sapi/fpm/fpm/fpm_shm.c).
1 parent bcd19cf commit edb5781

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ PHP NEWS
2929
function is by reference). (Nikita Popov)
3030
. Fixed bug #51860 (Include fails with toplevel symlink to /). (Dmitry)
3131

32+
- FPM
33+
. Fixed bug #61430 (Transposed memset() params in sapi/fpm/fpm/fpm_shm.c).
34+
(michaelhood at gmail dot com, Ilia)
35+
3236
- Ibase
3337
. Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
3438
(Ilia)

sapi/fpm/fpm/fpm_shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void *fpm_shm_alloc(size_t size) /* {{{ */
3535
return NULL;
3636
}
3737

38-
memset(mem, size, 0);
38+
memset(mem, 0, size);
3939
fpm_shm_size += size;
4040
return mem;
4141
}

0 commit comments

Comments
 (0)