diff options
| author | peter <peter@pmikkelsen.com> | 2026-10-04 17:04:28 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-10-04 17:04:28 +0000 |
| commit | c5a489d7f82535a70488dd4f9e40e79f32a7fb2f (patch) | |
| tree | 3f6e214b395d9655e054508128fcf373a6dfd39b /src/lib/aplwc_internal.h | |
| parent | b66229d60635784ed289dd9bf0058f5c165ca8b5 (diff) | |
Fix the crashes found by the fuzzer so far.
I really need to think of a better way to store those crash inputs.
FossilOrigin-Name: a8b84fbc85ec0b472aca930d2d0af27949b39940317114cc37d37044bf1975d5
Diffstat (limited to 'src/lib/aplwc_internal.h')
| -rw-r--r-- | src/lib/aplwc_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/aplwc_internal.h b/src/lib/aplwc_internal.h index ca7e719..148fd58 100644 --- a/src/lib/aplwc_internal.h +++ b/src/lib/aplwc_internal.h @@ -163,6 +163,7 @@ int valid_ref(struct aplwc_ref *); #define MEMPTRS_EXIT(aplwc) memptrs_remove(aplwc, &memptrs_frame) /* string.c */ +#define INVALID_CHAR UINT32_MAX struct string *chars_to_string(struct aplwc *, const char *, int len); uint32_t string_char(struct string *, size_t); size_t char_length(struct string *, size_t); |