add missing libc string.h include

fix missing errno.h include

add some more overflow treatment and make sure to set errno properly

(0) -1000 -300 -100 -30 -10 -3 +3 +10 +30 tip

mercurial