]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-rules: use the right variable
authorDavid Tardon <dtardon@redhat.com>
Fri, 5 Dec 2025 14:17:13 +0000 (15:17 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Dec 2025 17:29:24 +0000 (02:29 +0900)
commitd23a7eb4c0b9f72d90f367de6fdc85b759aa6859
tree11e389e4b37e7d6a0cb0668c4b6c6596ab36f66a
parentfdb9ad1a4465a8c973fe85474a6b55194b4b1299
udev-rules: use the right variable

We carefully prepare a copy of a local buffer to save in device cache
and then save the buffer there instead... This leads to abort in free()
on exit (also, copied is leaked).

Reproducer:
 # udevadm test /sys/block/sr0

Follow-up-for: a9559ebcbcf3098b2c14e5e10e99d05aaffe4ac3

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2406118
src/udev/udev-rules.c