fix a crash from using an empty string for "include"
the parser could crash when "include" specified an empty string in place of the filename. this has been fixed by returning ISC_R_FILENOTFOUND when the string length is 0.
This commit is contained in:
14
bin/tests/system/checkconf/bad-empty-include.conf
Normal file
14
bin/tests/system/checkconf/bad-empty-include.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
*
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* See the COPYRIGHT file distributed with this work for additional
|
||||
* information regarding copyright ownership.
|
||||
*/
|
||||
|
||||
include "";
|
||||
Reference in New Issue
Block a user