add helpers for detecting size_t overflow