Skip to content

sdasgup3/binary-decompilation

Repository files navigation

Table of Contents

uintptr_t safe_addptr(int *of, uint64_t a, uint64_t b) {
    
    uintptr_t r = a + b;
    
    if (r < a) {
      *of = 1;
      return r;
    } else {
      return r;
    }
}