Craig Barnes
|
5f41eb798b
|
base64: simplify lookup table initializer
|
2024-03-17 15:27:22 +00:00 |
|
Craig Barnes
|
e56136ce11
|
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
|
2021-01-16 20:16:00 +00:00 |
|
Craig Barnes
|
22f25a9e4f
|
Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
|
2021-01-16 19:56:33 +00:00 |
|
Craig Barnes
|
c66ad27cc8
|
base64: only allow padding bytes at the end of a string when decoding
|
2020-11-30 06:06:28 +00:00 |
|
Craig Barnes
|
8d568143da
|
base64: optimize error checking in base64_decode()
|
2020-11-29 07:19:58 +00:00 |
|
Craig Barnes
|
7a77958ba2
|
Convert most dynamic allocations to use functions from xmalloc.h
|
2020-08-08 20:37:57 +01:00 |
|
Craig Barnes
|
745aeba382
|
base64: simplify is_valid() by using reverse_lookup table
|
2020-08-08 03:55:23 +01:00 |
|
Daniel Eklöf
|
9c3ccc182e
|
base64: implement encode()
|
2019-07-19 14:19:42 +02:00 |
|
Daniel Eklöf
|
bb8a733758
|
base64: initial base64 decode implementation
|
2019-07-19 11:11:25 +02:00 |
|