mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
[master] fix length check in OPENPGPKEY
4170. [security] An incorrect boundary check in the OPENPGPKEY rdatatype could trigger an assertion failure. [RT #40286]
This commit is contained in:
@@ -1268,7 +1268,7 @@ txt_fromwire(isc_buffer_t *source, isc_buffer_t *target) {
|
||||
|
||||
isc_buffer_activeregion(source, &sregion);
|
||||
if (sregion.length == 0)
|
||||
return(ISC_R_UNEXPECTEDEND);
|
||||
return (ISC_R_UNEXPECTEDEND);
|
||||
n = *sregion.base + 1;
|
||||
if (n > sregion.length)
|
||||
return (ISC_R_UNEXPECTEDEND);
|
||||
|
Reference in New Issue
Block a user