mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
bounds check the radix, just in case.
This commit is contained in:
parent
e361857343
commit
b4b2f81ef3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13563
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
|
||||
* $Id: subr_prf.c,v 1.24 1996/01/19 11:38:18 phk Exp $
|
||||
* $Id: subr_prf.c,v 1.25 1996/01/19 21:05:52 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ddb.h"
|
||||
@ -439,6 +439,10 @@ kvprintf(char const *fmt, void (*func)(int, void*), void *arg, int radix, va_lis
|
||||
|
||||
if (fmt == NULL)
|
||||
fmt = "(fmt null)\n";
|
||||
|
||||
if (radix < 8 || radix > 16)
|
||||
radix = 10;
|
||||
|
||||
for (;;) {
|
||||
padc = ' ';
|
||||
width = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user