svn_checksum__from_digest() core dump on invalid input
From: Blair Zajac <blair_at_orcaware.com>
Date: Sat, 14 Apr 2012 12:13:33 -0700
In tracking down spurious coredumps we have in our custom RPC server, I found
svn_checksum_t *
memcpy((unsigned char *)checksum->digest, digest, DIGESTSIZE(kind));
If kind is invalid, then svn_checksum_create() returns NULL, which then
Normally, I would change svn_checksum__from_digest() to
svn_error_t *
but I'm wondering how the checksum code needs to handle newer checksums in older
Frankly, I'm happy I got a core dump in our code since it prevented bad data
Blair
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.