Re: [PATCH] misc: ds1682: fix out-of-bounds access in EEPROM functions

From: wajahat iqbal
Date: Sat Aug 09 2025 - 20:47:30 EST


Hi again,

Just to add, while sysfs enforces size limits, these only protect
accesses through the sysfs interface. Adding explicit bounds checks in
the driver helps ensure safety if the functions are called from
elsewhere or future code changes bypass sysfs checks.

This extra layer helps avoid potential hardware issues or crashes due
to out-of-bounds access.

Thanks again for reviewing.

Best,

Wajahat