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:
parent
0405c0c878
commit
8f06b6fbad
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue