chiark / gitweb /
adnsresfilter: Fix addrtextbuf buffer size
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Aug 2016 21:32:23 +0000 (22:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 12 Aug 2016 21:39:40 +0000 (22:39 +0100)
commit9b5218c341a6d6b37a12260f171e9007b9eb9908
tree123b4d24f65ba59bca7523936bc578bd17015fa6
parent8385ad9439e541ae72befcdfe69a81ba1c99e372
adnsresfilter: Fix addrtextbuf buffer size

We can write 18 bytes (including the trailing nul) to this.  This is
not actually a problem in real compiled code because: cbyte is
generally the next thing; cbytes's alignment means that there are a
further two bytes of padding; and we only write the next two bytes
(']' and a nul) in a situation where we are done with cbyte anyway.

But it should be fixed.

Reported-by: Ron Henderson
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
changelog
client/adnsresfilter.c