1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

Merge pull request #17292 from kaspar030/base64url_tmp_buffer

tests/unittests/tests-base64: enlarge test buffer for worst case
This commit is contained in:
Marian Buschsieweke 2021-11-30 09:13:37 +01:00 committed by GitHub
commit 44ebc38cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -414,7 +414,11 @@ static void test_base64_11_urlsafe_encode_int(void)
unsigned char expected_encoding[] = "-RAAAA";
size_t base64_out_size = 0;
char base64_out[sizeof(expected_encoding)];
/* Up to two = signs are suppressed in urlsafe encoding at the end, but
* still written in the implementation. Just allocate 2 bytes more as worst
* case */
char base64_out[sizeof(expected_encoding) + 2];
/*
* @Note: