#
7bb1a6cf |
| 05-Sep-2022 |
tb <tb@openbsd.org> |
Convert from %i to %d
|
#
eb7a2039 |
| 21-Mar-2021 |
tb <tb@openbsd.org> |
Plug memory leak reported by Ilya Shipitsin
Since r1.7, input in base64_decoding_test() is allocated unconditionally, so free it unconditionally.
|
#
4b98474b |
| 10-Mar-2020 |
inoguchi <inoguchi@openbsd.org> |
Import openssl-1.1.1d test data to base64test.c
ok bcook@ tb@
|
#
9d21d53c |
| 10-Mar-2020 |
inoguchi <inoguchi@openbsd.org> |
Modify regress base64test.c
- Don't remove multi line CR/LF from bt->out when NL mode
base64_encoding_test removes CR/LF from bt->out to compare with the encoding result. This is fine with NO N
Modify regress base64test.c
- Don't remove multi line CR/LF from bt->out when NL mode
base64_encoding_test removes CR/LF from bt->out to compare with the encoding result. This is fine with NO NL mode, but it goes wrong with NL mode if encoding result is larger than 64 and multi line, like below.
"eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4\neHh4eHh4eHh4eHh4\n"
- Use memcpy instead of asprintf to avoid lost '\0' at the end of data
This test data loses trailing '\0' if using asprintf.
"\x61\x47\x56\x73\x62\x47\x38\x3d\x0a\x00"
- Print original data if decoding result comparison fails
This change is not for importing test data, but I just notice. It prints bt->out if fail to memcmp bt->in with decoding result.
ok bcook@ tb@
show more ...
|
#
fe8a344b |
| 27-Jun-2019 |
deraadt <deraadt@openbsd.org> |
check for asprintf failing allocation
|
#
657b055c |
| 17-Jul-2018 |
tb <tb@openbsd.org> |
Add missing $OpenBSD$ markers.
|
#
7df9a849 |
| 30-Oct-2015 |
miod <miod@openbsd.org> |
Pull in <sys/types.h> to get ssize_t or <stdint.h> to get uint32_t, instead of relying upon previously included headers to do this, to enhance portability; from Pascal Cuoq, libressl github pull requ
Pull in <sys/types.h> to get ssize_t or <stdint.h> to get uint32_t, instead of relying upon previously included headers to do this, to enhance portability; from Pascal Cuoq, libressl github pull request #52
show more ...
|
#
59536ef3 |
| 16-May-2014 |
jsing <jsing@openbsd.org> |
Fix various issues that result in compiler warnings.
Prompted by a diff from Brent Cook.
|
#
1363119f |
| 03-May-2014 |
jsing <jsing@openbsd.org> |
Update the base64 regress test and enable a test that would previously have resulted in a segfault. Also update the resulting output bytes now that the invalid/corrupt input is detected and rejected;
Update the base64 regress test and enable a test that would previously have resulted in a segfault. Also update the resulting output bytes now that the invalid/corrupt input is detected and rejected; unless you're using BIO_FLAGS_BASE64_NO_NL, in which case you still get a stream of zero value bytes and no way of knowing that the data is invalid/corrupt.
show more ...
|
#
97f8c275 |
| 03-May-2014 |
jsing <jsing@openbsd.org> |
Initial version of a base64 regress.
|