• Max Kellermann's avatar
    util/HugeAllocator: fix division by zero due to inverted check · 13f9f031
    Max Kellermann authored
    There were two ways this could fail:
    
    1. division by zero when sysconf(_SC_PAGESIZE)==0
    
    2. mmap() failure because the size parameter is not aligned to page
       size
    
    Neither ever happened: sysconf() never fails, and the only caller
    passes a size that is already aligned.  Phew.
    13f9f031
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...