Files
libbase58/tests/decode-highbit.sh
Luke Dashjr cdeed0709e tests: Check decode with high bits set fails
This doesn't catch out-of-bounds memory access, but it's a good test to have anyway.
2015-02-28 02:21:00 +00:00

4 lines
94 B
Bash

#!/bin/sh
hex=$(echo 319932 | xxd -r -p | base58 -d 25 || echo FAIL)
test "x${hex}" = "xFAIL"