sandboxed-api/sandboxed_api/sandbox2/util
Christian Blichmann c2b7cffe78 Minielf: Use a template to load integers
Different versions of the `elf.h` header define their own integer types. For
example, even on LP64 systems, a 64-bit ELF integer types may decay into
`unsigned long long` instead of `unsigned long`.

This change replaces the various overloads with a single function template
that is well-defined for all integral types.

PiperOrigin-RevId: 410746713
Change-Id: I4b560f7541802372f01ae3d6f4a56554e51d70c8
2021-11-18 02:16:26 -08:00
..
testdata Sandboxed API OSS release. 2019-03-18 19:00:48 +01:00
bpf_helper.c Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
bpf_helper.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
BUILD.bazel Move utility code into sandboxed_api/util 2021-01-13 09:25:52 -08:00
CMakeLists.txt Move utility code into sandboxed_api/util 2021-01-13 09:25:52 -08:00
maps_parser_test.cc Internal change 2021-01-22 06:01:34 -08:00
maps_parser.cc Internal BUILD refactoring 2020-09-03 07:40:33 -07:00
maps_parser.h Internal BUILD refactoring 2020-09-03 07:40:33 -07:00
minielf_test.cc Internal change 2021-01-22 06:01:34 -08:00
minielf.cc Minielf: Use a template to load integers 2021-11-18 02:16:26 -08:00
minielf.h Use sapi::file::GetContents() and light Mini-ELF refactoring 2021-04-28 07:49:17 -07:00