]> granicus.if.org Git - gc/commit
Fix null pointer dereference in get_private_path_and_zero_file (Symbian)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 6 Apr 2018 06:32:12 +0000 (09:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 16 Apr 2018 07:28:00 +0000 (10:28 +0300)
commit4b9fd6bbdd78ee01ef13ee256ea37b54408eedc0
tree75369a2959f816ed94d97f84b98e2234beee8516
parent83dd5411e81c0b9bf9eed2b7c6bb5044936071d2
Fix null pointer dereference in get_private_path_and_zero_file (Symbian)
(back-port of commit 9d019e2e from 'master')

* extra/symbian.cpp (GC_get_private_path_and_zero_file): Do not call
memcpy() if allocation of copyChar is failed.
* os_dep.c [MMAP_SUPPORTED && !USE_MMAP_ANON] (zero_fd): Initialize
global variable to -1 (instead of 0).
* os_dep.c [MMAP_SUPPORTED && !USE_MMAP_ANON && SYMBIAN]
(GC_unix_mmap_get_mem): Do not call open() and free() if path is NULL.
extra/symbian.cpp
os_dep.c