1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00

lejp: allow up to 20 digit decimal numbers

https://github.com/warmcat/libwebsockets/issues/1559
This commit is contained in:
Andy Green 2019-04-28 06:58:13 +01:00
parent 0405c0c878
commit 8f06b6fbad

View file

@ -514,7 +514,7 @@ lejp_parse(struct lejp_ctx *ctx, const unsigned char *json, int len)
goto append_npos;
}
if (ctx->dcount < 10 && c >= '0' && c <= '9') {
if (ctx->dcount < 20 && c >= '0' && c <= '9') {
if (ctx->f & LEJP_SEEN_POINT)
ctx->f |= LEJP_SEEN_POST_POINT;
ctx->dcount++;