27 Aug
2019
27 Aug
'19
4:40 a.m.
Daniel Lehman <dlehman25(a)gmail.com> writes:
+ value = strtoullW( lphttpHdr->lpszValue, NULL, 10 ); + if (value > UINT_MAX) + { + LeaveCriticalSection( &request->headers_section ); + return ERROR_HTTP_INVALID_HEADER; + }
If you are not going to return a 64-bit value, you don't need strtoull(). strtoul() with an overflow check should be enough. -- Alexandre Julliard julliard(a)winehq.org