Re: [PATCH] fix valgrind error for /sys/kernel/uids/*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 17, 2008 at 12:28 PM, Alan Jenkins
<alan-jenkins@xxxxxxxxxxxxxx> wrote:
> Kay Sievers wrote:
>> It seems to work fine here, but the code may be a bit rough at the
>> moment, until it has seen more testing. But, it should be pretty easy
>> now to play around with a threaded version of the daemon.

> # valgrind -q ./udevd &
> # udevtrigger
> ==16329== Invalid read of size 1
> ==16329==    at 0x40C9DA: udev_device_set_syspath (libudev-device.c:939)
> ==16329==    by 0x40DFB6: udev_monitor_receive_device
> (libudev-monitor.c:318)
> ==16329==    by 0x411F52: main (udevd.c:889)
> ==16329==  Address 0x60f2507 is 1 bytes before a block of size 6 alloc'd
> ==16329==    at 0x4C22FAB: malloc (vg_replace_malloc.c:207)
> ==16329==    by 0x4EA1DD1: strdup (strdup.c:43)
> ==16329==    by 0x40C987: udev_device_set_syspath (libudev-device.c:926)
> ==16329==    by 0x40DFB6: udev_monitor_receive_device
> (libudev-monitor.c:318)
> ==16329==    by 0x411F52: main (udevd.c:889)

> The syspath in question was /sys/kernel/uids/65534.

Ah, nice. Thanks, applied.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux