Skip to content
GitLab
Menu
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
39f02955
Commit
39f02955
authored
Aug 16, 2000
by
Andreas Gustafsson
Browse files
in dns_name_totext(), check that the target buffer is
valid, and make use of the new isc_buffer_* macros
parent
d2148c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/name.c
View file @
39f02955
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: name.c,v 1.10
1
2000/08/
08
2
3
:18:
1
0 gson Exp $ */
/* $Id: name.c,v 1.10
2
2000/08/
16
2
2
:18:
2
0 gson Exp $ */
#include <config.h>
...
...
@@ -1704,12 +1704,13 @@ dns_name_totext(dns_name_t *name, isc_boolean_t omit_final_dot,
* wire format.
*/
REQUIRE
(
VALID_NAME
(
name
));
REQUIRE
(
ISC_BUFFER_VALID
(
target
));
ndata
=
name
->
ndata
;
nlen
=
name
->
length
;
labels
=
name
->
labels
;
tdata
=
(
char
*
)
target
->
base
+
target
->
used
;
tlen
=
target
->
length
-
target
->
used
;
tdata
=
isc_buffer_used
(
target
)
;
tlen
=
isc_buffer_available
length
(
target
)
;
trem
=
tlen
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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