diff options
author | Jacob Moody <moody@posixcafe.org> | 2023-04-06 02:59:11 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2023-04-06 02:59:11 +0000 |
commit | 26e42d115979009c9fe144e1c28f740485537674 (patch) | |
tree | c9bbd6e3770c617765357b1a2686789dade9845e /sys/src/libc | |
parent | 9ab4f2a2428ef5ad2f4abc118f589bd70f6c2f90 (diff) |
awk: getline: do not access unitialized data on EOF
echo 'a' | awk 'BEGIN { getline l; getline l; print (s=substr(l,1,10)) " len=" length(s) }'
https://github.com/onetrueawk/awk/commit/1debe1993fc852545a9215621d884be27f08a223
Diffstat (limited to 'sys/src/libc')
0 files changed, 0 insertions, 0 deletions