1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/lib/misc
Daren Hayward ac9e3ba677 b64: lws_b64_decode_stateful truncates response
Addresses issue #2855 by allowing the parsing of the final byte when there are at least 3 bytes remaining in the buffer.

For every 4 bytes of input, a maximum of 3 bytes of output are generated when decoding the base64 string. The buffer space, therefore, only requires an additional 3 bytes of space. The code checks for space in the buffer before adding null termination.
2023-11-13 09:15:18 +00:00
..
cache-ttl http: cookies: support cookie jar in and out 2021-08-21 17:44:40 +01:00
fts type comparisons: fixes 2021-01-05 10:56:38 +00:00
lwsac type comparisons: fixes 2021-01-05 10:56:38 +00:00
threadpool threadpool: SYNC timeout on netbsdBE 2021-10-05 07:40:16 +01:00
base64-decode.c b64: lws_b64_decode_stateful truncates response 2023-11-13 09:15:18 +00:00
CMakeLists.txt lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
daemonize.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
dir.c From a966322704 Mon Sep 17 00:00:00 2001 2022-07-13 06:23:40 +01:00
diskcache.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
fsmount.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
getifaddrs.c qnx: toolchain file and adaptations 2022-01-04 15:58:41 +00:00
getifaddrs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
ieeehalfprecision.c lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
lecp.c lecp: add CBOR stream parser LECP like JSON LEJP 2021-08-21 17:44:40 +01:00
lejp.c lejp-conf: provide matches for block start paths 2022-02-11 08:43:16 +00:00
lws-ring.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
lws-struct-lejp.c lws_struct: add CHILD_PTR setting 2021-08-19 05:31:15 +01:00
lws-struct-sqlite.c type comparisons: fixes 2021-01-05 10:56:38 +00:00
peer-limits.c peer-limits: only run clean up sul if any entries 2021-01-17 19:23:48 +00:00
prng.c Fault injection 2021-04-05 10:55:04 +01:00
romfs.c linkit: support build using public sdk 2020-01-17 07:45:34 +00:00
romfs.h refactor: subdirs for source in lib 2017-10-16 17:28:37 +08:00
sha-1.c type comparisons: fixes 2021-01-05 10:56:38 +00:00