gecko-dev/mozglue/interposers
serge-sans-paille 769ddf6425 Bug 1851154 - Provide our own implementation of C's getline for Android r=jld
10 years ago (!) Bug 914190 already choked on the fact that bionic's
getline implementation could realloc a buffer using a function call
we cannot intercept, resulting in different memory allocator being used
to allocate and free the getline buffer.

This got hit again by 1850948, causing a backout. The approach taken at
that time (use std::getline) is neither future-proof (as demonstrated by
the backout) nor always satisfying (std::string as a few limitations in
term of low-level buffer manipulation).

Provide our implementation for Android, as hinted by the original bug.

Differential Revision: https://phabricator.services.mozilla.com/D187270
2023-09-04 07:00:31 +00:00
..
InterposerHelper.h Bug 1835231 - Use dlopen() wrapper for Android <= 22 r=gsvelto 2023-06-02 15:13:04 +00:00
env_interposer.cpp Bug 1752703 - Add interposers for functions manipulating the environment to prevent crashes r=glandium 2023-05-10 16:33:07 +00:00
getline_interposer.cpp Bug 1851154 - Provide our own implementation of C's getline for Android r=jld 2023-09-04 07:00:31 +00:00
moz.build Bug 1851154 - Provide our own implementation of C's getline for Android r=jld 2023-09-04 07:00:31 +00:00
pthread_create_interposer.cpp Bug 1752703 - Move the pthread_thread_create() interposer under mozglue and prepare for having a single place where we place interposer functions r=glandium 2023-05-10 16:33:07 +00:00