Searched refs:safe_add (Results 1 - 5 of 5) sorted by relevance
/bionic/linker/ |
H A D | linker_mapped_file_fragment.cpp | 50 CHECK(safe_add(&offset, base_offset, elf_offset)); 55 CHECK(safe_add(&end_offset, offset, size)); 56 CHECK(safe_add(&end_offset, end_offset, page_offset(offset)));
|
H A D | linker_utils.h | 58 bool safe_add(off64_t* out, off64_t a, size_t b);
|
H A D | linker_utils.cpp | 178 bool safe_add(off64_t* out, off64_t a, size_t b) { function
|
H A D | linker_phdr.cpp | 299 safe_add(&range_start, file_offset_, offset) && 300 safe_add(&range_end, range_start, size) &&
|
/bionic/linker/tests/ |
H A D | linker_utils_test.cpp | 115 TEST(linker_utils, safe_add) { 117 ASSERT_FALSE(safe_add(&val, INT64_MAX-20, 21U)); 119 ASSERT_TRUE(safe_add(&val, INT64_MAX-42, 42U)); 121 ASSERT_TRUE(safe_add(&val, 2000, 42U));
|
Completed in 52 milliseconds