Dactyloidae/memory
Olivier Certner 387487ffb6 Issue #1730 - Part 1: Interpose malloc even on RTLD_DEEPBIND presence
New FreeBSD versions have introduced RTLD_DEEPBIND (see dlopen(3)), which
triggers a provoked build error to be on the "safe" side.

Indeed, improper use of RTLD_DEEPBIND could cause malloc interposing not to
work on specific libraries. This would happen for libraries that provide their
own malloc/free and exchange pointers with other libraries or the main program,
one allocating an area and another one deallocating it.

It seems it happened for glibc, which is not a concern on FreeBSD, and for the
Flash Player (not a concern either, there is no native Flash Player). Moreover,
there is only a single reference to RTLD_DEEPBIND in the whole platform
currently, namely in the WebRTC code, but the corresponding code chunk is
compiled-in only on Linux (and this library doesn't seem to redefine malloc
functions anyway). So I don't see how a problem could happen. Additionally,
Pale Moon, which is my focus, doesn't use WebRTC.

Corresponding Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=493541
2021-02-12 10:49:50 +08:00
..
build Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
fallible Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
gtest Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
mozalloc Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
mozjemalloc Issue #1730 - Part 1: Interpose malloc even on RTLD_DEEPBIND presence 2021-02-12 10:49:50 +08:00
replace Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
volatile Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
moz.build Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00