>
> I'm able to narrow down the failure to decoding base32. Encoding works
> fine. Decoding fails with a stack overflow just like the report in 2010
> here:
>
http://comments.gmane.org/gmane.comp.encryption.cryptopp/5355
Here's a very simple test program that demonstrates the base32 decoding
error:
https://github.com/w8rbt/oathgen/blob/master/base32_test.cpp
Here's how I compile the test program:
g++ -g -g3 -std=c++11 -Wall -Wextra -Werror \
-Weffc++ -pedantic-errors base32_test.cpp \
-o b32_test \
/usr/lib/libcryptopp.so
Here's my g++ version:
g++ --version
g++ (Debian 4.7.2-5) 4.7.2
Here's output from valgrind:
==22360== Stack overflow in thread 1: can't grow stack to 0x7fe801ff8
==22360==
==22360== Process terminating with default action of signal 11 (SIGSEGV)
==22360== Access not within mapped region at address 0x7FE801FF8
==22360== at 0x50F35EE:
CryptoPP::Base32Decoder::IsolatedInitialize(CryptoPP::NameValuePairs
const&) (in /usr/lib/libcrypto++.so.9.0.0)
Thanks,
Brad
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.