diff options
author | Luke Carmichael <lcarmich@umich.edu> | 2016-10-01 22:06:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 22:06:34 -0400 |
commit | d1e97737d63f1f083cbe5323b88645e0db127064 (patch) | |
tree | a1ecad6c4f3d84bd394d25b263f421afafd583d6 | |
parent | 98be7da3e2cc256e16d3c9f76b3a0053a930eb2c (diff) | |
download | jansson-d1e97737d63f1f083cbe5323b88645e0db127064.zip jansson-d1e97737d63f1f083cbe5323b88645e0db127064.tar.gz jansson-d1e97737d63f1f083cbe5323b88645e0db127064.tar.bz2 |
Allow parsing of buffers larger than 2GB on most 64 bit arch.
size_t is usually 64 bits on most architectures -- this allows for larger .json files
-rw-r--r-- | src/load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -914,7 +914,7 @@ static json_t *parse_json(lex_t *lex, size_t flags, json_error_t *error) typedef struct { const char *data; - int pos; + size_t pos; } string_data_t; static int string_get(void *data) |