mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 00:02:04 -04:00
1975. [bug] libbind: isc_gethexstring() could misparse multi-line
hex strings with comments. [RT #15814]
This commit is contained in:
parent
fc7685a7f1
commit
d3bcf7adca
2 changed files with 6 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
1975. [bug] libbind: isc_gethexstring() could misparse multi-line
|
||||
hex strings with comments. [RT #15814]
|
||||
|
||||
1974. [doc] List each of the zone types and associated zone
|
||||
options seperately in the ARM.
|
||||
|
||||
|
|
|
|||
|
|
@ -45,8 +45,9 @@ isc_gethexstring(unsigned char *buf, size_t len, int count, FILE *fp,
|
|||
goto formerr;
|
||||
/* comment */
|
||||
if (c == ';') {
|
||||
while ((c = fgetc(fp)) != EOF && c != '\n')
|
||||
/* empty */
|
||||
do {
|
||||
c = fgetc(fp);
|
||||
} while (c != EOF && c != '\n');
|
||||
if (c == '\n' && *multiline)
|
||||
continue;
|
||||
goto formerr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue