Systemd/src/udev
Zbigniew Jędrzejewski-Szmek 099c77fd5f scsi_serial: replace some crazy strncpy() calls by strnlen()
gcc was warning about strncpy() leaving an unterminated string.
In this case, it was correct.

The code was doing strncpy()+strncat()+strlen() essentially to determine
if the strings have expected length. If the length was correct, a buffer
overread was performed (or at least some garbage bytes were used from the
uninitialized part of the buffer). Let's do the length check first and then
only copy stuff if everything agrees.

For some reason the function was called "prepend", when it obviously does
an "append".
2019-05-07 21:06:44 +02:00
..
ata_id tree-wide: replace explicit NULL checks with their shorter variants 2019-04-28 14:28:49 +02:00
cdrom_id udev/cdrom_id: drop unneeded parentheses 2019-05-01 11:46:42 +02:00
mtd_probe coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
net codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
scsi_id scsi_serial: replace some crazy strncpy() calls by strnlen() 2019-05-07 21:06:44 +02:00
v4l_id tree-wide: replace explicit NULL checks with their shorter variants 2019-04-28 14:28:49 +02:00
.vimrc
generate-keyboard-keys-gperf.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
generate-keyboard-keys-list.sh scripts: use 4 space indentation 2019-04-12 08:30:31 +02:00
meson.build meson: declare version.h as dep for various targets that include build.h 2019-02-25 10:41:41 +01:00
udev-builtin-blkid.c udev: use SYNTHETIC_ERRNO() macro in log_device_*_errno() 2019-01-13 17:50:47 +09:00
udev-builtin-btrfs.c tree-wide: drop several missing_*.h and import relevant headers from kernel-5.0 2019-04-11 19:00:37 +02:00
udev-builtin-hwdb.c udev: use ENODATA when 'No entry found from hwdb' 2019-01-13 18:04:10 +09:00
udev-builtin-input_id.c Remove 'inline' attributes from static functions in .c files (#11426) 2019-01-15 08:12:28 +01:00
udev-builtin-keyboard.c Remove 'inline' attributes from static functions in .c files (#11426) 2019-01-15 08:12:28 +01:00
udev-builtin-kmod.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
udev-builtin-net_id.c udev: net_id: introduce predictable names for netdevsim 2019-04-23 14:01:00 +02:00
udev-builtin-net_setup_link.c udev: use SYNTHETIC_ERRNO() macro in log_device_*_errno() 2019-01-13 17:50:47 +09:00
udev-builtin-path_id.c Delete duplicate lines 2019-01-12 16:02:26 +01:00
udev-builtin-uaccess.c udev: use right error variable to make level decision 2018-10-24 20:47:52 +02:00
udev-builtin-usb_id.c tree-wide: replace explicit NULL checks with their shorter variants 2019-04-28 14:28:49 +02:00
udev-builtin.c tree-wide: constify a few static string tables 2019-03-25 14:04:34 +01:00
udev-builtin.h udev-builtin: modernize code a bit 2018-10-23 18:28:38 +09:00
udev-ctrl.c tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call 2019-04-10 22:11:18 +02:00
udev-ctrl.h udev-ctrl: split out logic of waiting for reply to udev_ctrl_wait() 2019-02-20 06:17:42 +09:00
udev-event.c udevd: use device_get_action() and device_get_seqnum() 2019-03-12 03:49:53 +09:00
udev-node.c udev: run programs in the specified order 2019-03-05 09:27:29 +01:00
udev-node.h udev: run programs in the specified order 2019-03-05 09:27:29 +01:00
udev-rules.c udev: whitespace fix 2019-04-18 15:18:12 +02:00
udev-watch.c coccinelle: also mark previous synthetic errnos as such 2018-11-22 10:54:38 +01:00
udev-watch.h udev-watch: replace udev_device by sd_device and modernize code a bit 2018-10-11 04:21:14 +09:00
udev.conf udev: also allow resolve_names= to be specified in udev.conf 2018-11-13 14:35:36 +01:00
udev.h udev: run programs in the specified order 2019-03-05 09:27:29 +01:00
udev.pc.in meson: define PROJECT_VERSION as the "bare" project version 2018-12-20 21:35:29 +01:00
udevadm-control.c udev-ctrl: split out logic of waiting for reply to udev_ctrl_wait() 2019-02-20 06:17:42 +09:00
udevadm-hwdb.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
udevadm-info.c udevadm: drop unused option 2019-04-04 12:55:06 +09:00
udevadm-monitor.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
udevadm-settle.c systemd-udev-settle.service: emit deprecation notice 2019-04-10 15:58:14 +02:00
udevadm-test-builtin.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
udevadm-test.c udevadm-test: check action string earlier 2019-03-12 03:49:53 +09:00
udevadm-trigger.c udev: fix memleak in 'udevadm trigger --settle' 2019-03-12 09:15:02 +01:00
udevadm-util.c udevadm: allow a .device unit to be specified for query and trigger 2018-12-11 09:24:31 +01:00
udevadm-util.h udevadm-info,trigger: replace udev_device by sd_device 2018-10-17 03:31:20 +09:00
udevadm.c tree-wide: constify a few static string tables 2019-03-25 14:04:34 +01:00
udevadm.h udevadm: add a workaround for dracut 2019-01-02 10:26:16 +01:00
udevd.c udevd: notify when max number value of children is reached only once per batch of events 2019-04-26 09:58:12 +02:00