gustafn
committed
on 26 Jan 17
Validate page_num to avoid potential attacks and to provide proper error messages