Glenn Strauss
396a923066
[core] li_base64_dec()
...
(make public in base64.h, like li_base64_enc())
10 months ago
Glenn Strauss
f2aacad079
[core] load padding char from base64_table
...
(triggers preload-access of table)
1 year ago
Glenn Strauss
3301fe0455
[core] li_base64_dec() on 4 bytes at a time
1 year ago
Glenn Strauss
0dfe9f7b76
[core] merge base64 encoding to li_base64_enc()
...
single func with option to add padding or not
1 year ago
Glenn Strauss
235c0dca84
[core] base64 encode w/ reduced data dependencies
1 year ago
Glenn Strauss
e7805dbf93
[core] base64 encode round-up for required space
...
no need for extra work for precision allocation to avoid 0-3 extra chars
note: callers passing precise buffer size for without padding will need
to be modified to pass a slightly larger buffer, e.g. mod_secdownload
1 year ago
Glenn Strauss
a473d48c43
[core] consolidate overflow checks in li_to_base64
1 year ago
Glenn Strauss
bc572e1c56
[core] base64_charset enum supports only 2 tables
1 year ago
Glenn Strauss
6de4c809c9
[core] buffer_append_base64_encode_opt()
...
with option to include or omit padding
single func to handle both:
- buffer_append_base64_encode_no_padding
- buffer_append_base64_encode
1 year ago
Glenn Strauss
6f942adfe0
[core] li_to_base64 alt code to add padding
1 year ago
Glenn Strauss
5e39c81ff2
[core] li_base64_decode mark cold code path
1 year ago
Glenn Strauss
099dc83fbe
[core] li_base64_decode similar to li_to_base64
1 year ago
Glenn Strauss
c752d4696e
[multiple] correct misspellings in comments
...
x-ref:
"Script for fixing spelling errors with codespell"
https://redmine.lighttpd.net/boards/3/topics/8947
2 years ago
Glenn Strauss
d4083effab
[core] fix base64 decode when char is unsigned ( fixes #2848 )
...
thx, codehero
x-ref:
"buffer_append_base64_decode() broken on compilers where char is assumed unsigned"
https://redmine.lighttpd.net/issues/2848
5 years ago
Glenn Strauss
7aff5046ac
[unittests] consolidate base64 test code
...
consolidate base64 test code
use char type for tables to reduce memory use
(potentially increase cache hits)
5 years ago
Stefan Bühler
82bee8d5c3
[base64] fix another crash due to broken force_assert conditions
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3119 152afb58-edef-0310-8abb-c4023f1b3aa9
6 years ago
Andrey Mnatsakanov
7b983ae054
[base64] fix crash due to broken force_assert
...
if the input to `li_to_base64_no_padding` has length 3*n,
`out_tuple_remainder` = `in_tuple_remainder` = 0, and `4*full_tuples
== 4*full_tuples + out_tuple_remainder`
From: Andrey Mnatsakanov <andrey.mnatsakanov@gmail.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3117 152afb58-edef-0310-8abb-c4023f1b3aa9
6 years ago
Glenn Strauss
8abd06a7ff
consistent inclusion of config.h at top of files ( fixes #2073 )
...
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
6 years ago
Stefan Bühler
b0a4421272
[core] refactor base64 functions into separate file
...
Differential Revision: https://review.lighttpd.net/D6
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3053 152afb58-edef-0310-8abb-c4023f1b3aa9
7 years ago