summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorVitaly Lifshits <vitaly.lifshits@intel.com>2025-08-17 12:25:47 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2025-09-02 11:09:00 -0700
commit90fb7db49c6dbac961c6b8ebfd741141ffbc8545 (patch)
tree086f4a0e9aad49da86265e793e3e777aa72a5014 /rust/helpers/platform.c
parentb7e5c3e3bfa9dc8af75ff6d8633ad7070e1985e4 (diff)
e1000e: fix heap overflow in e1000_set_eeprom
Fix a possible heap overflow in e1000_set_eeprom function by adding input validation for the requested length of the change in the EEPROM. In addition, change the variable type from int to size_t for better code practices and rearrange declarations to RCT. Cc: stable@vger.kernel.org Fixes: bc7f75fa9788 ("[E1000E]: New pci-express e1000 driver (currently for ICH9 devices only)") Co-developed-by: Mikael Wessel <post@mikaelkw.online> Signed-off-by: Mikael Wessel <post@mikaelkw.online> Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com> Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions