4265. [bug] Address unchecked isc_mem_get calls. [RT #41187]

(cherry picked from commit 8e73941f33)
This commit is contained in:
Mark Andrews
2015-11-30 10:29:29 +11:00
parent 8b9eae483f
commit 372bc0c02e
5 changed files with 11 additions and 7 deletions

View File

@@ -57,6 +57,8 @@ isc_md5_invalidate(isc_md5_t *ctx) {
void
isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) {
if (len == 0U)
return;
RUNTIME_CHECK(EVP_DigestUpdate(ctx,
(const void *) buf,
(size_t) len) == 1);