mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
Use ISC_DIR_PATHMAX for PATH_MAX.
Cast argument to htons() to isc_uint16_t to delint NT's CL. It is range checked before the call.
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(lint) && !defined(SABER)
|
#if !defined(lint) && !defined(SABER)
|
||||||
static char rcsid[] = "$Id: confparser.y,v 1.7 1999/10/02 21:23:10 brister Exp $";
|
static char rcsid[] = "$Id: confparser.y,v 1.8 1999/10/08 23:05:00 tale Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -39,7 +39,7 @@ static char rcsid[] = "$Id: confparser.y,v 1.7 1999/10/02 21:23:10 brister Exp $
|
|||||||
#include <isc/symtab.h>
|
#include <isc/symtab.h>
|
||||||
#include <isc/error.h>
|
#include <isc/error.h>
|
||||||
#include <isc/once.h>
|
#include <isc/once.h>
|
||||||
|
#include <isc/dir.h>
|
||||||
#include <isc/net.h>
|
#include <isc/net.h>
|
||||||
|
|
||||||
#include <dns/confparser.h>
|
#include <dns/confparser.h>
|
||||||
@@ -3150,7 +3150,7 @@ in_port: L_INTEGER
|
|||||||
(int)$1);
|
(int)$1);
|
||||||
$1 = 0;
|
$1 = 0;
|
||||||
} else {
|
} else {
|
||||||
$$ = htons($1);
|
$$ = htons((isc_uint16_t)$1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
@@ -3666,7 +3666,7 @@ static void
|
|||||||
parser_complain(isc_boolean_t is_warning, isc_boolean_t print_last_token,
|
parser_complain(isc_boolean_t is_warning, isc_boolean_t print_last_token,
|
||||||
const char *format, va_list args)
|
const char *format, va_list args)
|
||||||
{
|
{
|
||||||
static char where[PATH_MAX + 100];
|
static char where[ISC_DIR_PATHMAX + 100];
|
||||||
static char message[20480];
|
static char message[20480];
|
||||||
|
|
||||||
const char *filename = isc_lex_getsourcename(mylexer);
|
const char *filename = isc_lex_getsourcename(mylexer);
|
||||||
|
Reference in New Issue
Block a user