Comments (6)
Ok so this error is caused because with simplified JSON I require a global object. So what it does is it thinks the scope around the first {} is an object in its own right, and it first looks for a key for the first element of the object (and it succeeds where it probably shouldn't), and then looks for a : or = to separate the key from the value, and then bails out.
I could maybe see an argument that I should say 'you can have a global object or not' when you turn simplified JSON on, what do you think?
from json.h.
That was my assumption. That no matter what flags I pass in, valid JSON is always valid.
from json.h.
Ok I'll rework the code with that in mind!
from json.h.
I've got an MR in testing now for this fix #29
from json.h.
Thank you so much for your quick attention. I wasn't sure how to tell the fix is through testing or ready to be pulled.
from json.h.
So I just merged the MR into master, just pull and it should work! And don't thank me, thank YOU. It's super awesome for me that you want to use my library over others! Keep the requests coming in, always happy to add more :)
from json.h.
Related Issues (20)
- Convert a json object into json string HOT 2
- Stack Overflow in json_get_value_size() HOT 2
- Test Case: json_write_pretty() with json string \u012b writes garbage HOT 3
- Minor overflow in json_skip_whitespace HOT 1
- json.h under TrustInSoft CI HOT 5
- Iterate over array linked list HOT 1
- Helping Parsing Array Json HOT 2
- [Feature Request] Lookup value via given key HOT 2
- Buffer overflow in json_skip_whitespace HOT 5
- Buffer overflow in json_get_number_size HOT 3
- Buffer overflow in json_skip_c_style_comments
- Re-definition errors under GCC HOT 8
- Heap buffer overflow in json_parse_value when use json_parse_flags_allow_inf_and_nan HOT 1
- Heap buffer overflow in json_parse_array HOT 1
- Heap Overflow in json_parse_string() HOT 2
- Heap Overflow in json_parse_object()
- Heap Overflow in json_parse_value()
- Heap Overflow in json_parse_number()
- Heap Overflow in json_parse_key()
- Another Heap OOB in json_parse_object()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json.h.