Files
nginx/src/stream
Roman Arutyunyan a8289aa69c Script: avoid garbage at the end of the result string
If the script result turned out to be shorter than its predicted
length, the result string contained uninitialized bytes at the end.
The fix is to cut the result string by its actual size.

The following locations returned trailing garbage to the client with
URI "/1234abcd".

    map $uri $foo {
        ~^/(?<bar>[0-9]).*$ $bar;
    }

    location ~(?<bar>[0-9]*)[a-z]*$ {
        return 200 $1:$foo;
    }

    location ~(?<bar>[0-9]*)[a-z]*$ {
        set $qux $1:$foo;
        return 200 $qux;
    }
2026-07-15 19:51:22 +04:00
..
2023-12-14 21:58:39 +04:00
2016-09-15 14:55:46 +03:00
2020-08-28 14:10:54 -07:00
2026-06-10 22:21:10 +04:00
2024-03-22 18:39:50 +04:00