aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_parse_time.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2017-08-22 21:22:59 +0300
committerRoman Arutyunyan <arut@nginx.com>2017-08-22 21:22:59 +0300
commit418124e21983aa53db4d99b7fd2eb0eee7ab4be0 (patch)
treedd3f1bf912626dfc44915c2d2c1692d454a71f7c /src/core/ngx_parse_time.c
parent6a2e4098331077037cb9c197f88a54f46d870068 (diff)
downloadnginx-418124e21983aa53db4d99b7fd2eb0eee7ab4be0.tar.gz
nginx-418124e21983aa53db4d99b7fd2eb0eee7ab4be0.zip
Secure link: fixed stack buffer overflow.
When secure link checksum has length of 23 or 24 bytes, decoded base64 value could occupy 17 or 18 bytes which is more than 16 bytes previously allocated for it on stack. The buffer overflow does not have any security implications since only one local variable was corrupted and this variable was not used in this case. The fix is to increase buffer size up to 18 bytes. Useless buffer size initialization is removed as well.
Diffstat (limited to 'src/core/ngx_parse_time.c')
0 files changed, 0 insertions, 0 deletions