diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-04-04 15:06:03 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-10 07:58:32 +0200 |
commit | 2f7b58abcee6ef32a927b3bd43070bbea205656b (patch) | |
tree | fc2ab4ee7ac556d052c7dc9a52959497b0291fdd /unittest/misc.py | |
parent | f9f89587026cd22115f06c216e2d69c4142c7060 (diff) | |
download | libnitrokey-2f7b58abcee6ef32a927b3bd43070bbea205656b.tar.gz libnitrokey-2f7b58abcee6ef32a927b3bd43070bbea205656b.tar.bz2 |
Null-terminate the argument for strtoul
As discussed in issue #95, the buffer passed to strtoul must be
null-terminated. This patch null-terminates the buffer used in
hexStringToByte in the test_HOTP unit test to avoid a buffer over-read.
Diffstat (limited to 'unittest/misc.py')
0 files changed, 0 insertions, 0 deletions