KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Replace fake-flex array with flex-array member in drivers/hid/intel-ish-hid/ishtp-hid.h #333

Open GustavoARSilva opened 11 months ago

GustavoARSilva commented 11 months ago
diff -u -p a/drivers/hid/intel-ish-hid/ishtp-hid.h b/drivers/hid/intel-ish-hid/ishtp-hid.h
--- a/drivers/hid/intel-ish-hid/ishtp-hid.h
+++ b/drivers/hid/intel-ish-hid/ishtp-hid.h
@@ -58,9 +58,9 @@ struct report_list {
        uint8_t num_of_reports;
        uint8_t flags;
        struct {
               uint16_t        size_of_report;

                uint8_t report[1];
       } __packed reports[1];
 } __packed;
kees commented 5 months ago

A flexible array of flexible arrays. :(