summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vsprintf.c
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-10-19 16:48:49 +0000
committerjh <jh@FreeBSD.org>2010-10-19 16:48:49 +0000
commite0ef538943372391168a941960a346e5b71fdccc (patch)
tree74f3cef44d60d20656a994496934dcc29248f74c /lib/libc/stdio/vsprintf.c
parent3f66b926771c75cf92084431cf4f12eecfd68413 (diff)
downloadFreeBSD-src-e0ef538943372391168a941960a346e5b71fdccc.zip
FreeBSD-src-e0ef538943372391168a941960a346e5b71fdccc.tar.gz
Use make_dev_p(9) with the MAKEDEV_CHECKNAME flag instead of make_dev(9)
and print a diagnostic if the call fails. This avoids a panic when a device with an invalid name is attempted to be registered. For example the label class gets device names from untrusted input. Reviewed by: freebsd-geom
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud