Skip to content
Commit 22416dc7 authored by Pedro Falcato's avatar Pedro Falcato
Browse files

Ext4Pkg: Fix out-of-bounds read in Ext4ReadDir



Fix an out-of-bounds read inside CompareMem() when
checking for "." or ".." by explicitly bounding name_len
to [0, 2] beforehand.

Reported-by: default avatarSavva Mitrofanov <savvamtr@gmail.com>
Fixes: 45e37d85 ("Ext4Pkg: Hide "." and ".." entries from Read() callers.")
Cc: Marvin Häuser <mhaeuser@posteo.de>
Signed-off-by: default avatarPedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: default avatarMarvin Häuser <mhaeuser@posteo.de>
parent 201514e6
Loading
Loading
Loading
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