CVSROOT: /cvs Module name: src Changes by: mill...@cvs.openbsd.org 2023/10/28 16:38:22
Modified files: usr.bin/awk : run.c Log message: substr: fix buffer overflow with utf-8 strings We need to use u8_strlen(), not strlen(), to compute the length. Otherwise, there may be an out of bounds write when writing the NUL terminator to set the length of the substring. https://github.com/onetrueawk/awk/pull/205