chunked-parser: abort on overflows, allow 64 bit chunks

This commit is contained in:
Daniel Stenberg
2014-01-16 23:07:54 +01:00
parent 821094ba72
commit 345891edba
2 changed files with 11 additions and 6 deletions

View File

@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -100,7 +100,7 @@ struct Curl_chunker {
char hexbuffer[ MAXNUM_SIZE + 1];
int hexindex;
ChunkyState state;
size_t datasize;
curl_off_t datasize;
size_t dataleft; /* untouched data amount at the end of the last buffer */
};