summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arc/fpu_control.h
diff options
context:
space:
mode:
authortinyusbboard .matrixstorm <tinyusbboard@matrixstorm.com>2025-10-18 14:54:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-10-18 19:25:34 +0200
commit3dcc84c74ece048b62c992edceab9cce54446f57 (patch)
tree98e6c282f72ec78378a0fcf45930ddbeff18f9ca /libc/sysdeps/linux/arc/fpu_control.h
parentee64907fe096304ecbc25117921124dde7825efb (diff)
avoid crashes in statical linked binaries when dlopen()HEADmaster
Even in current (1.0.55) releaes of uClibc-ng there will be 100% reproducible crashes of statically linked binaries (on all kind of platforms), when calling "dlopen(...)" with wrong or non-existing .so-files). #0 0x0000000000404b62 in _dl_load_shared_library () #1 0x0000000000404d49 in do_dlopen () #2 0x0000000000405286 in dlopen () This is caused by missing checks on "_dl_loaded_modules" in "ldso/ldso/dl-elf.c". When "_dl_loaded_modules" is NULL in static linked binaries, it becomes dereferenced and causes an segfault. This patch fixes the issue by adding an extra assignment-check for "_dl_loaded_modules". Signed-off-by: Stephan Baerwolf <stephan@matrixstorm.com>
Diffstat (limited to 'libc/sysdeps/linux/arc/fpu_control.h')
0 files changed, 0 insertions, 0 deletions