pud: fix strto* result checking for out-of-range situations