commit a33cdf29070a7bd0e46fc1484c98508ca959c1fa parent 6f2afe1ecb01ff3ff8d6f9e297ed02e0d42f8b93 Author: default <nobody@localhost> Date: Tue, 4 Feb 2025 16:10:52 +0100 Another crash fix. Diffstat:
M | xs_url.h | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/xs_url.h b/xs_url.h @@ -23,6 +23,9 @@ xs_str *xs_url_dec(const char *str) if (sscanf(str + 1, "%02x", &i) == 1) { unsigned char uc = i; + if (!xs_is_string((char *)&uc)) + break; + s = xs_append_m(s, (char *)&uc, 1); str += 2; }