[ldns-users] ldns-key2ds seg fault
Paul Wouters
paul at xelerance.com
Tue Aug 7 04:58:10 UTC 2007
The key files I have had the following format:
$ORIGIN .
dnsx.xelerance.com 3600 IN DNSKEY 257 3 5 (
AwEAAc1yA34Y56yizTBIG+NOojCs8H3NtdeV
Tzam/rLE2KW9Uw1KugXkKRyjZnSWN7EkEYE9
0UeBHtgqOQ6K5pMhmtyl0kgBa2o7B5F85gBD
ielfHSXgWcrgsT9OpxcVafmYjE5NtE98OQZc
wW8d7Neu+avFfke0Uwq2g5RFSYyHPpC9ydyC
kCNEs7FRr5IUQCUyqfIon9Qy8M7Vqtf58MQX
UVWwZLkMu1WtD3FUZ2Rl/PtW9UeeNWSqxLPh
0XoTdSBe1FWhbHvRaBByL/D+Q+SJ+ehoYnKj
a6c8Dhg4sfrJ1Wy0z2Wv9pGth7cLCEVNKI9F
CBlv8xh+GshBC+r/Ou6/CGM=
) ; key id = 10732
When running ldns-key2ds on this file, you get a segfault.
Removing the first line with the $ORIGIN statement resolved the issue.
It might further make sense not to write to a file, but to just output the
result. Or if you really want to write to a file, make seperate files for
sha1 and sha256, so you do not have to move files between generations.
Paul
More information about the ldns-users
mailing list