aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-29 21:30:20 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-29 21:34:12 +0530
commitb937534868c8d7aec3b6d645bf5fd657bbfccd42 (patch)
tree18936faaea13f35bcaf698f97447752c0e1c4567 /ChangeLog
parentd0501bfbe228897c17875fcead8809d017135d6f (diff)
downloadglibc-b937534868c8d7aec3b6d645bf5fd657bbfccd42.zip
glibc-b937534868c8d7aec3b6d645bf5fd657bbfccd42.tar.gz
glibc-b937534868c8d7aec3b6d645bf5fd657bbfccd42.tar.bz2
Avoid crashing in LD_DEBUG when program name is unavailable
Resolves: #15465 The program name may be unavailable if the user application tampers with argc and argv[]. Some parts of the dynamic linker caters for this while others don't, so this patch consolidates the check and fallback into a single macro and updates all users.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog47
1 files changed, 47 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7cd9634..1d7b555 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,50 @@
+2013-05-29 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ [BZ #15465]
+ * elf/Makefile (tests): Add tst-null-argv.
+ (modules-names): Add tst-null-argv-lib.
+ ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
+ (tst-null-argv-ENV): Set environment for tst-null-argv.
+ * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
+ (RTLD_PROGNAME): New macro.
+ * elf/tst-null-argv.c: New test case.
+ * elf/tst-null-argv-lib.c: Library for test case.
+ * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
+ * elf/dl-deps.c (_dl_map_object_deps): Likewise.
+ * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
+ * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
+ * elf/dl-init.c (call_init): Likewise.
+ (_dl_init): Likewise.
+ * elf/dl-load.c (print_search_path): Likewise.
+ (_dl_map_object): Likewise.
+ * elf/dl-lookup.c (do_lookup_x): Likewise.
+ (add_dependency): Likewise.
+ (_dl_lookup_symbol_x): Likewise.
+ (_dl_debug_bindings): Likewise.
+ * elf/dl-open.c (_dl_show_scope): Likewise.
+ * elf/dl-reloc.c (_dl_relocate_object): Likewise.
+ * elf/dl-version.c (match_symbol): Likewise.
+ (_dl_check_map_versions): Likewise.
+ * elf/rtld.c (dl_main): Likewise.
+ (print_unresolved): Use RTLD_PROGNAME.
+ (print_missing_version): Likewise.
+ * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
+ (elf_machine_rela): Likewise.
+ * sysdeps/powerpc/powerpc32/dl-machine.c
+ (__process_machine_rela): Likewise.
+ * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
+ Likewise.
+ * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
+ Likewise.
+ * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
+ Likewise.
+ * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
+ * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
+ Likewise.
+ * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
+ Likewise.
+ * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
+
2013-05-28 Carlos O'Donell <carlos@redhat.com>
* po/be.po: Add descriptive title.