Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0859-erts-Fix-bug-in-erts_mremap-in-probably-de...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0859-erts-Fix-bug-in-erts_mremap-in-probably-dead-code.patch of Package erlang
From 548ec5fb954665b7ebc35a8ebcfd4896b92c7ffa Mon Sep 17 00:00:00 2001 From: Sverker Eriksson <sverker@erlang.org> Date: Tue, 25 Jan 2022 18:35:30 +0100 Subject: [PATCH 2/3] erts: Fix bug in erts_mremap in (probably) dead code new_ptr is NULL and would crash memcpy(). --- erts/emulator/sys/common/erl_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/emulator/sys/common/erl_mmap.c b/erts/emulator/sys/common/erl_mmap.c index 1a49471252..364c2a3234 100644 --- a/erts/emulator/sys/common/erl_mmap.c +++ b/erts/emulator/sys/common/erl_mmap.c @@ -1897,7 +1897,7 @@ erts_mremap(ErtsMemMapper* mm, #endif #ifdef ERTS_HAVE_OS_MREMAP if (superaligned) { - return remap_move(mm, flags, new_ptr, old_size, sizep); + return remap_move(mm, flags, ptr, old_size, sizep); } else { new_ptr = os_mremap(ptr, old_size, asize, 0); if (!new_ptr) -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor