base64: fix off-by-one buffer size bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Aug 2011 19:36:13 +0000 (12:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Aug 2011 19:36:31 +0000 (12:36 -0700)
Problem and (trivial) fix reported by Gijs van Tulder in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
* lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
* tests/test-base64.c (main): Catch the bug.


No differences found