Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
77397daf
Commit
77397daf
authored
May 15, 2007
by
Mark Andrews
Browse files
2177. [bug] Array bounds overrun on read (rcodetext). [RT #16798]
parent
51cce67b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
77397daf
2177. [bug] Array bounds overrun on read (rcodetext). [RT #16798]
2176. [contrib] dbus update to handle race condition during
initialisation (Bugzilla 235809). [RT #16842]
...
...
lib/dns/message.c
View file @
77397daf
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: message.c,v 1.23
3
200
6/12/04
01:5
2
:4
6
marka Exp $ */
/* $Id: message.c,v 1.23
4
200
7/05/15
01:5
4
:4
9
marka Exp $ */
/*! \file */
...
...
@@ -3064,8 +3064,7 @@ dns_message_sectiontotext(dns_message_t *msg, dns_section_t section,
ADD_STRING
(
target
,
";; "
);
if
(
msg
->
opcode
!=
dns_opcode_update
)
{
ADD_STRING
(
target
,
sectiontext
[
section
]);
}
else
{
}
else
{
ADD_STRING
(
target
,
updsectiontext
[
section
]);
}
ADD_STRING
(
target
,
" SECTION:
\n
"
);
...
...
@@ -3187,7 +3186,12 @@ dns_message_totext(dns_message_t *msg, const dns_master_style_t *style,
ADD_STRING
(
target
,
";; ->>HEADER<<- opcode: "
);
ADD_STRING
(
target
,
opcodetext
[
msg
->
opcode
]);
ADD_STRING
(
target
,
", status: "
);
ADD_STRING
(
target
,
rcodetext
[
msg
->
rcode
]);
if
(
msg
->
rcode
<
(
sizeof
(
rcodetext
)
/
sizeof
(
rcodetext
[
0
])))
{
ADD_STRING
(
target
,
rcodetext
[
msg
->
rcode
]);
}
else
{
snprintf
(
buf
,
sizeof
(
buf
),
"%4u"
,
msg
->
rcode
);
ADD_STRING
(
target
,
buf
);
}
ADD_STRING
(
target
,
", id: "
);
snprintf
(
buf
,
sizeof
(
buf
),
"%6u"
,
msg
->
id
);
ADD_STRING
(
target
,
buf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment