aboutsummaryrefslogtreecommitdiffstats
path: root/py-smbus/setup.py
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2025-05-13 17:35:39 +0200
committerWolfram Sang <wsa+renesas@sang-engineering.com>2025-05-19 17:29:33 +0200
commitea51da725b743da00b894dfdc4ab189f5a51e90e (patch)
treea5949887b6e39b044756e6b863ec9419f93b7d8b /py-smbus/setup.py
parent93fedbd9da2289674b51a3c982ea5cd3fd3f213c (diff)
downloadi2c-tools-master.tar.gz
i2ctransfer: Zero out memory passed to ioctl()HEADmaster
Valgrind complains that uninitialized memory may be passed to ioctl(): == Syscall param ioctl(I2C_RDWR) points to uninitialised byte(s) == at 0x499382B: ioctl (in /lib64/libc.so.6) == by 0x401957: main (i2ctransfer.c:343) == Address 0x1ffefff94c is on thread 1's stack == in frame #1, created by main (i2ctransfer.c:144) == == Syscall param ioctl(I2C_RDWR).msgs points to uninitialised byte(s) == at 0x499382B: ioctl (in /lib64/libc.so.6) == by 0x401957: main (i2ctransfer.c:343) == Address 0x1ffefff956 is on thread 1's stack == in frame #1, created by main (i2ctransfer.c:144) Zero out the i2c_rdwr_ioctl_data struct as well as the msgs array to guarantee that no uninitialized memory will ever be passed to the kernel. Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'py-smbus/setup.py')
0 files changed, 0 insertions, 0 deletions