2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

isc_print_vsnprintf() could throw an assertion failure when

given a %lld format, causing a deadlock when logging the assertion if invoked
from the logging system.  Since the %qd format does not have the bug, this only
affects platforms where the native quad format is %lld and that lack a native
vsnprintf().  The only known such platform is SunOS 5.5.1. [RT #1312]
This commit is contained in:
Andreas Gustafsson
2001-05-16 00:52:55 +00:00
parent 8e245ec21b
commit d76b6ae2ad

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: print.c,v 1.21 2001/02/22 19:12:56 gson Exp $ */
/* $Id: print.c,v 1.22 2001/05/16 00:52:55 gson Exp $ */
#include <config.h>
@@ -180,8 +180,10 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
case 'l':
l = 1;
format++;
if (*format == 'l')
if (*format == 'l') {
q = 1;
format++;
}
goto doint;
case 'n':
case 'i':