protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit 49a3dd507ee021a9f17026bfa7f503df6d7c53d6
parent 2172277614be3c3bdf84a91121055e61881ee503
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 17 Jul 2023 22:14:14 -0700

parse: fix crash in hex parsing

Diffstat:
Msrc/parse.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/parse.c b/src/parse.c @@ -647,11 +647,11 @@ static int parse_hex_float(const char *str, int len, double *result) { int found_period = 0; int exponent = 0; int sign = 1; - u8 c; - u8 *start = cur->p; + u8 c, *start; cur = &_cur; make_cursor((u8*)str, (u8*)str + len, cur); + start = cur->p; if (!pull_byte(cur, &c)) goto fail;