https://bugs.kde.org/show_bug.cgi?id=479842
Bug ID: 479842 Summary: syswrap-linux: improve initialisation checks for I2C_RDWR syscall Classification: Developer tools Product: valgrind Version: 3.23 GIT Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: schm...@digadd.de Target Milestone: --- Created attachment 164914 --> https://bugs.kde.org/attachment.cgi?id=164914&action=edit Patch for improved initialisation checks for I2C_RDWR syscall The argument structures for this syscall contain padding. The current code will always fail, as the padding is not initialised. The structures in question are from linux/i2c-dev.h: struct i2c_rdwr_ioctl_data { struct i2c_msg *msgs; /* pointers to i2c_msgs */ __u32 nmsgs; /* number of i2c_msgs */ // Padding here (on 64bit machines) }; and from linux/i2c.h: struct i2c_msg { __u16 addr; __u16 flags; __u16 len; // Padding here __u8 *buf; }; Patch to check the individual fields instead is attached. -- You are receiving this mail because: You are watching all bug changes.