summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8385ad9)
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>
when one of the address queries returns a permanent error (although,
the application almost certainly won't use this pointer because the
associated count is zero).
when one of the address queries returns a permanent error (although,
the application almost certainly won't use this pointer because the
associated count is zero).
+ * adnsresfilter: Fix addrtextbuf buffer size. This is not actually a
+ problem in real compiled code but should be corrected.
static struct sockaddr_in sa;
static adns_state ads;
static struct sockaddr_in sa;
static adns_state ads;
-static char addrtextbuf[14];
+static char addrtextbuf[18]; /* [ddd.ddd.ddd.ddd] + nul */
static int cbyte, inbyte, inbuf;
static unsigned char bytes[4];
static struct timeval printbefore;
static int cbyte, inbyte, inbuf;
static unsigned char bytes[4];
static struct timeval printbefore;