]> Savannah Git Hosting - gnulib.git/commit
base32, base64: fix broken tests
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Aug 2021 07:45:43 +0000 (00:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Aug 2021 07:46:23 +0000 (00:46 -0700)
commit93280a4bdca1c6e6fa1946fbf9d8621c42bdd692
tree9e4ffe62f5e01eb3193dc5f8e83ac383c86f3660
parent34298f25c3d1d56f0502fdad42df3af6764e6a5d
base32, base64: fix broken tests

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2021-08/msg00170.html
* lib/base32.c, lib/base64.c: Do not include verify.h,
and omit all uses of ‘assume’.
* modules/base32, modules/base64 (Depends-on): Remove verify.
* tests/test-base32.c, tests/test-base64.c:
Don’t pass out-of-range values to allocator,
as converting them to idx_t relies on implementation-defined
behavior that could trap.
ChangeLog
lib/base32.c
lib/base64.c
modules/base32
modules/base64
tests/test-base32.c
tests/test-base64.c