Skip to content
Snippets Groups Projects
Forked from APT Developers / apt
Source project has a limited visibility.
  • David Kalnischkies's avatar
    f7e6eaf8
    Avoid undefined pointer arithmetic while growing mmap · f7e6eaf8
    David Kalnischkies authored
    The undefined behaviour sanitizer complains with:
    runtime error: addition of unsigned offset to 0x… overflowed to 0x…
    
    Compilers and runtime do the right thing in any case and it is a
    codepath that can (and ideally should) be avoided for speed reasons
    alone, but fixing it can't hurt (too much).
    f7e6eaf8
    History
    Avoid undefined pointer arithmetic while growing mmap
    David Kalnischkies authored
    The undefined behaviour sanitizer complains with:
    runtime error: addition of unsigned offset to 0x… overflowed to 0x…
    
    Compilers and runtime do the right thing in any case and it is a
    codepath that can (and ideally should) be avoided for speed reasons
    alone, but fixing it can't hurt (too much).