]> git.ipfire.org Git - thirdparty/bind9.git/commit
Address bugs in opensslrsa_tofile
authorMark Andrews <marka@isc.org>
Mon, 1 Nov 2021 00:40:26 +0000 (11:40 +1100)
committerMark Andrews <marka@isc.org>
Mon, 1 Nov 2021 21:50:47 +0000 (21:50 +0000)
commit78066157145b6a75f58ff843ac32ffabe62b2143
treeb835525125ffe7fc849aa0e9690ec9d395690193
parent573a5858fa55d4239fb1db1dd8f8f04d05f03d0f
Address bugs in opensslrsa_tofile

1) if 'key->external' is set we just need to call
   dst__privstruct_writefile
2) the cleanup of 'bufs' was incorrect as 'i' doesn't reflect the
   the current index into 'bufs'.  Use a simple for loop.

This review was triggered by Coverity reporting a buffer overrun
on 'bufs'.
lib/dns/opensslrsa_link.c