FreeBSD Bugzilla – Attachment 170278 Details for
Bug 209492
devel/jansson: patch for CVE-2016-4425 (r414586) breaks jansson: now it fails to parse large flat json files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
jansson-test.c
jansson-test.c (text/plain), 556 bytes, created by
Yuri Victorovich
on 2016-05-14 16:33:28 UTC
(
hide
)
Description:
jansson-test.c
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2016-05-14 16:33:28 UTC
Size:
556 bytes
patch
obsolete
>#include <stdio.h> >#include <jansson.h> > >char json[10000000]; > >int main() { > int i; > char *p; > // generate json > p = json; > p += sprintf(p, "{\"xxxxxxx\":{\n"); > p += sprintf(p, "\"xxxxx\":[\n"); > for (i = 0; i < 100000; i++) > p += sprintf(p, "[\"xxx%i\"],\n", i); > p += sprintf(p, "[\"last\"]\n"); > p += sprintf(p, "]\n"); > p += sprintf(p, "}}\n"); > //printf("%s", json); > > // parse > json_t* res = json_loads(json, JSON_REJECT_DUPLICATES, 0); > if (!res) { > printf("(!!!) FAILED (!!!)\n"); > } else { > printf("--success--\n"); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 209492
: 170278