]> git.kaiwu.me - njs.git/commit
Fixed String.toLowerCase() and String.toUpperCase().
authorValentin Bartenev <vbart@nginx.com>
Sat, 27 Jul 2019 14:03:02 +0000 (17:03 +0300)
committerValentin Bartenev <vbart@nginx.com>
Sat, 27 Jul 2019 14:03:02 +0000 (17:03 +0300)
commit820d0da0d9e6f5acbf0bb9dd1739a6ff2ba332af
treec69aad974fe7a097619ebd99176b9a06c75abdb2
parentba90f06ea4cdc6521d01ced4ad9c69bacdd0e90f
Fixed String.toLowerCase() and String.toUpperCase().

Previously these functions didn't took into account that the size of
a string may change during case transformation resulting in buffer
underflow or overflow.
njs/njs_string.c
njs/test/njs_unit_test.c