diff options
author | Mattias Wadman <mattias.wadman@gmail.com> | 2023-07-02 16:48:07 +0200 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2023-07-25 13:38:41 -0500 |
commit | a949745059ee61366a5d880c3b18d5d4db6524eb (patch) | |
tree | 4fb0a93cf93e99d098eae5f8eff37ef6c92b049d /src/jv.h | |
parent | a29ac81de117a6bad625bc4ff75bbb395a58f7d6 (diff) |
implode: Better invalid input validation and handling
Error on non-number and nan codepoint, would asserd before
Replace negative codepoint and surrogate range with unicode replacement character, would assert before
Fixes #1160
Diffstat (limited to 'src/jv.h')
-rw-r--r-- | src/jv.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -63,6 +63,7 @@ jv jv_number(double); jv jv_number_with_literal(const char*); double jv_number_value(jv); int jv_is_integer(jv); +int jvp_number_is_nan(jv); int jv_number_has_literal(jv n); const char* jv_number_get_literal(jv); |