Mercurial > hg > nginx
annotate src/os/win32/nginx_icon16.xpm @ 7094:c7d4017c8876
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 22 Aug 2017 21:22:59 +0300 |
parents | 4ac89c5aa10d |
children |
rev | line source |
---|---|
681 | 1 /* XPM */ |
2 static char * nginx_xpm[] = { | |
3 "16 16 2 2", | |
4 /* colors */ | |
5 " c none", | |
6 "GG c #009900", | |
7 /* pixels */ | |
8 " ", | |
9 " GGGGGGGGGGGGGGGG ", | |
10 " GGGGGGGGGGGGGGGG ", | |
11 " GGGGGGGGGGGGGGGGGGGG ", | |
12 " GGGGGG GGGGGG ", | |
13 " GGGGGG GGGGGG ", | |
14 " GGGGGG ", | |
15 " GGGGGG GGGGGGGGGGGGGGGG ", | |
16 " GGGGGG GGGGGGGGGGGGGGGGGG ", | |
17 " GGGGGG GGGGGGGGGGGGGG ", | |
18 " GGGGGG GGGGGG ", | |
19 " GGGGGG GGGGGG ", | |
20 " GGGGGGGGGGGGGGGGGGGG ", | |
21 " GGGGGGGGGGGGGGGG ", | |
22 " GGGGGGGGGGGGGGGG ", | |
23 " " | |
754
4ac89c5aa10d
style fix: remove trailing spaces
Igor Sysoev <igor@sysoev.ru>
parents:
681
diff
changeset
|
24 }; |