~emersion/libjsonschema

decoder: limit max nesting depth

Limit the maximum nesting depth when parsing to protect against stack
overflow.

A nesting depth limit of 10,000 was chosen after the Go standard
library:
https://github.com/golang/go/commit/84afaa9e9491d76ea43d7125b336030a0a2a902d
encoding: add link to RFC
decoder: document token lifetime in jsch_decode()
tool: don't generate first var if there is only a single field
tool: drop JSCH prefix from ATTR_PRINTF macro
Use GNU format attribute if available

I don't like GNU attributes in general, but this one is useful to
avoid mistakes.
4aafccb4 — Reini Urban 2 years ago
tool: fix missing parameter to strfmt()
encoder: note that caller must cleanup after jsch_raw_value_create_encoder()
encoder: handle NULL in jsch_encode_raw_value()
tool: don't encode omitted fields which aren't required

Requires a bit more work to allow zero to be encoded for optional
integer fields, for instance.
encoder: handle NULL in jsch_encode_string()
tool: fix schema_int_type() returning NULL
build: override dep
tool: use sized integer when min > 0 too
build: generate pkg-config file
Add more docs
tool: lookup $ref recursively
tool: use sized integers
Use uint64_t in jsch_number

We want to be able to store UINT64_MAX.
Use int64_t in encoding API

Removes the need to expose APIs for all integer types.
Next
Do not follow this link