Searched refs:safe_add (Results 1 – 5 of 5) sorted by relevance
/bionic/linker/ |
D | linker_utils_test.cpp | 118 TEST(linker_utils, safe_add) { in TEST() argument 120 ASSERT_FALSE(safe_add(&val, INT64_MAX-20, 21U)); in TEST() 122 ASSERT_TRUE(safe_add(&val, INT64_MAX-42, 42U)); in TEST() 124 ASSERT_TRUE(safe_add(&val, 2000, 42U)); in TEST()
|
D | linker_mapped_file_fragment.cpp | 50 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map() 55 CHECK(safe_add(&end_offset, offset, size)); in Map() 56 CHECK(safe_add(&end_offset, end_offset, page_offset(offset))); in Map()
|
D | linker_utils.h | 60 bool safe_add(off64_t* out, off64_t a, size_t b);
|
D | linker_utils.cpp | 178 bool safe_add(off64_t* out, off64_t a, size_t b) { in safe_add() function
|
D | linker_phdr.cpp | 301 safe_add(&range_start, file_offset_, offset) && in CheckFileRange() 302 safe_add(&range_end, range_start, size) && in CheckFileRange()
|