CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2022/01/20 10:11:31
Modified files: sys/kern : subr_prf.c Log message: snprintf(9) allows NULL string if size is 0. But doing NULL pointer arithmetic is undefined behavior. Check that size is positive before adding to pointer. While there, use NUL char for string termination. found by kubsan; joint work with tobhe@; OK millert@