2a8b26a09c
commit 02ac3a9ef3a18b58d8f3ea2b6e46de657bf6c4f9 upstream.
The recent fix for array out-of-bounds accesses replaced sprintf()
calls blindly with snprintf(). However, since snprintf() returns the
would-be-printed size, not the actually output size, the length
calculation can still go over the given limit.
Use scnprintf() instead of snprintf(), which returns the actually
output letters, for addressing the potential out-of-bounds access
properly.
Fixes:
|
||
---|---|---|
.. | ||
BUGS-parport | ||
daisy.c | ||
ieee1284.c | ||
ieee1284_ops.c | ||
Kconfig | ||
Makefile | ||
multiface.h | ||
parport_amiga.c | ||
parport_atari.c | ||
parport_cs.c | ||
parport_gsc.c | ||
parport_gsc.h | ||
parport_ip32.c | ||
parport_mfc3.c | ||
parport_pc.c | ||
parport_serial.c | ||
parport_sunbpp.c | ||
probe.c | ||
procfs.c | ||
share.c | ||
TODO-parport |