out of range tm fields should not be treated as ub as noted in the thread http://sourceware.org/ml/libc-alpha/2015-09/msg00546.html i have a patch but there might be simpler approaches