mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '1682-dighost-c-idn_output_filter-has-off-by-one-error' into 'master'
Resolve "dighost.c: idn_output_filter has off by one error" Closes #1682 See merge request isc-projects/bind9!3243
This commit is contained in:
commit
6052e254b9
1 changed files with 1 additions and 1 deletions
|
|
@ -4420,7 +4420,7 @@ idn_output_filter(isc_buffer_t *buffer, unsigned int used_org) {
|
|||
* Copy name from 'buffer' to 'src' and terminate it with NULL.
|
||||
*/
|
||||
srclen = isc_buffer_usedlength(buffer) - used_org;
|
||||
if (srclen > sizeof(src)) {
|
||||
if (srclen >= sizeof(src)) {
|
||||
warn("Input name too long to perform IDN conversion");
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue