1975. [bug] libbind: isc_gethexstring() could misparse multi-line

hex strings with comments. [RT #15814]
This commit is contained in:
Mark Andrews 2006-01-31 00:54:46 +00:00
parent fc7685a7f1
commit d3bcf7adca
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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;