[PATCH v2 0/2] lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()

Vincent Mailhol posted 2 patches 8 hours ago
lib/ucs2_string.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
[PATCH v2 0/2] lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()
Posted by Vincent Mailhol 8 hours ago
This series fixes an off-by-one out-of-bounds read in ucs2_strnlen().

The first patch is the real fix, the second patch comes as a bonus and
fixes the code indentation.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
Changes in v2:

  - Toggle the patch order. ucs2_strnlen() is now before the
    tabulation fix to make it easier to backport.

  - Add Cc: stable on the ucs2_strnlen().

Link to v1: https://lore.kernel.org/r/20260722-fix-ucs2_strnlen-v1-0-ba5bade2b026@kernel.org

---
Vincent Mailhol (2):
      lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()
      lib/ucs2_string.c: fix indentation

 lib/ucs2_string.c | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)
---
base-commit: 1590cf0329716306e948a8fc29f1d3ee87d3989f
change-id: 20260722-fix-ucs2_strnlen-145f5d4b1f6b

Best regards,
-- 
Vincent Mailhol <mailhol@kernel.org>