Skip to content
Snippets Groups Projects
Commit 7b0a5b66 authored by Alok Swaminathan's avatar Alok Swaminathan Committed by Andrew Morton
Browse files

lib: glob.c: added null check for character class

Add null check for character class.  Previously, an inverted character
class could result in a nul byte being matched and lead to the function
reading past the end of the inputted string.

Link: https://lkml.kernel.org/r/20240826155709.12383-1-swaminathanalok@gmail.com


Signed-off-by: default avatarAlok Swaminathan <swaminathanalok@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 74b00993
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment