This threw:
../hw/dmx/input/dmxarg.c: In function ‘dmxArgParse’:
../hw/dmx/input/dmxarg.c:128:5: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(tmp, string, len);
^~~~~~~~~~~~~~~~~~~~~~~~~
../hw/dmx/input/dmxarg.c:126:11: note: length computed here
len = strlen(string) + 2;
^~~~~~~~~~~~~~
This code predates xstrtokenize, but that's no excuse.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Acked-by: Keith Packard <keithp@keithp.com>
|
||
|---|---|---|
| .. | ||
| ChkNotMaskEv.c | ||
| ChkNotMaskEv.h | ||
| Makefile.am | ||
| atKeynames.h | ||
| dmxarg.c | ||
| dmxarg.h | ||
| dmxbackend.c | ||
| dmxbackend.h | ||
| dmxcommon.c | ||
| dmxcommon.h | ||
| dmxconsole.c | ||
| dmxconsole.h | ||
| dmxdetach.c | ||
| dmxdummy.c | ||
| dmxdummy.h | ||
| dmxevents.c | ||
| dmxevents.h | ||
| dmxinputinit.c | ||
| dmxinputinit.h | ||
| dmxmap.c | ||
| dmxmap.h | ||
| dmxmotion.c | ||
| dmxmotion.h | ||
| dmxxinput.c | ||
| meson.build | ||
| usb-common.c | ||
| usb-common.h | ||
| usb-keyboard.c | ||
| usb-keyboard.h | ||
| usb-mouse.c | ||
| usb-mouse.h | ||
| usb-other.c | ||
| usb-other.h | ||
| usb-private.h | ||