commit a33cdf2
default
·
2025-02-04 15:10:52 +0000 UTC
parent 6f2afe1
Another crash fix.
1 files changed,
+3,
-0
M
xs_url.h
M
xs_url.h
+3,
-0
1@@ -23,6 +23,9 @@ xs_str *xs_url_dec(const char *str)
2 if (sscanf(str + 1, "%02x", &i) == 1) {
3 unsigned char uc = i;
4
5+ if (!xs_is_string((char *)&uc))
6+ break;
7+
8 s = xs_append_m(s, (char *)&uc, 1);
9 str += 2;
10 }