jfes icon indicating copy to clipboard operation
jfes copied to clipboard

Json For Embedded Systems (JFES)

Results 5 jfes issues
Sort by recently updated
recently updated
newest added

``` jfes_value_t * json = jfes_create_object_value(&json_config); jfes_value_t * val = jfes_create_double_value(&json_config, value); jfes_status_t res = jfes_set_object_property(&json_config, json, val, "state", 5); if (res != jfes_success) return 0; jfes_value_to_string(json, output, &size, 0);...

http://mittorn.tk/clean2.json ``` jfes_parse_to_value(&config, file, len, &root); jfes_free_value(&config, &root); ``` ``` Program received signal SIGSEGV, Segmentation fault. 0x000055555557345a in jfes_free_value (config=0x7ffffff7cdd0, value=0x603000029f80) at jfes.c:1276 1276 jfes_value_t *item = value->data.array_val->items[i]; (gdb) bt...

https://github.com/lumimies18/jfes/blob/d4fb6b04b5792231236532ffc95fdb27439656d5/jfes.c#L1225 Hi, thank for your useful library, I found a bug in this line, you should replace "1024" with "length" so it uses the desired memory, if you use this...

There is a problem with `jfes_double_to_string_r` function. When you split fractional_value from real value, you forget about zeros. So 0.0007123132 turns to 0.7 after serialisation

`count` field contain garbage when no elements in object/array. When we try free this value we may free unallocated memory. This pull request fix this. Test code: ```c jfes_value_t json;...