platform_bionic/linker
George Burgess IV 705910094d bionic: fix assorted static analyzer warnings
Warnings:

bionic/libc/bionic/fts.c:722:5: warning: Null passed to a callee that
requires a non-null 1st parameter

bionic/libc/bionic/sched_cpualloc.c:34:25: warning: Result of 'malloc'
is converted to a pointer of type 'cpu_set_t', which is incompatible
with sizeof operand type 'unsigned long'

bionic/linker/linker_main.cpp:315:7: warning: Access to field 'e_type'
results in a dereference of a null pointer (loaded from variable
'elf_hdr')

bionic/linker/linker_main.cpp:493:66: warning: Access to field 'e_phoff'
results in a dereference of a null pointer (loaded from variable
'elf_hdr')

bionic/linker/linker_main.cpp:90:14: warning: Access to field 'next'
results in a dereference of a null pointer (loaded from variable 'prev')

Bug: None
Test: mma; analyzer warnings are gone. CtsBionicTestCases pass.
Change-Id: I699a60c2c6f64c50b9ea06848a680c98a8abb44a
2017-06-28 15:03:15 -07:00
..
arch Remove obsolete __stack_chk_fail_local. 2017-05-23 16:43:30 -07:00
tests linker_config_test: allow search paths of systems without a vendor partition 2017-06-19 00:12:45 +00:00
Android.bp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
Android.mk Convert linker from Android.mk to Android.bp 2016-07-15 13:39:29 -07:00
dlfcn.cpp Make dl_iterate_phdr return correct name for first entry 2017-05-31 23:45:15 +00:00
ld.config.format.md Load namespace configuration from ld.config.txt 2017-03-24 15:50:45 -07:00
linked_list.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker.cpp greylist is no longer enabled by default. 2017-05-09 17:59:00 -07:00
linker.h Make dl_iterate_phdr return correct name for first entry 2017-05-31 23:45:15 +00:00
linker_allocator.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_allocator.h Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_block_allocator.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_block_allocator.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_cfi.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_cfi.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_common_types.h Extract soinfo and globals to separate files. 2016-08-08 16:12:53 -07:00
linker_config.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_config.h linker: add android_get_exported_namespace 2017-04-28 10:14:28 +09:00
linker_debug.h Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_dlwarning.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_dlwarning.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_gdb_support.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_gdb_support.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_globals.cpp Extract soinfo and globals to separate files. 2016-08-08 16:12:53 -07:00
linker_globals.h Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_libc_support.c Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_libcxx_support.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_logger.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_logger.h Add support for disabling the greylist. 2017-04-06 10:59:24 -07:00
linker_main.cpp bionic: fix assorted static analyzer warnings 2017-06-28 15:03:15 -07:00
linker_main.h Load namespace configuration from ld.config.txt 2017-03-24 15:50:45 -07:00
linker_mapped_file_fragment.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_mapped_file_fragment.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_memory.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_mips.cpp linker: fix mips build 2016-08-09 06:58:55 -07:00
linker_namespaces.cpp The workaround for apps using older version of soinfos 2017-04-12 10:37:31 -07:00
linker_namespaces.h greylist is no longer enabled by default. 2017-05-09 17:59:00 -07:00
linker_phdr.cpp Decode the common EM_ values. 2017-04-19 17:49:43 -07:00
linker_phdr.h Check alignment along with range of mapped file fragments 2016-08-10 10:52:55 -07:00
linker_reloc_iterators.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_relocs.h Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_sdk_versions.cpp Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
linker_sleb128.h Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_soinfo.cpp Move libc_log code into libasync_safe. 2017-05-03 08:50:43 -07:00
linker_soinfo.h Make dl_iterate_phdr return correct name for first entry 2017-05-31 23:45:15 +00:00
linker_utils.cpp Extract format_string function. 2017-03-13 16:25:51 -07:00
linker_utils.h Load namespace configuration from ld.config.txt 2017-03-24 15:50:45 -07:00
MODULE_LICENSE_BSD Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
rt.cpp More dynamic linker cleanup. 2012-10-30 16:35:38 -07:00