[PATCH] squashfs: Fix heap corruption in sqfs_search_dir()

Miquel Raynal miquel.raynal at bootlin.com
Mon Aug 12 09:52:54 CEST 2024


Hi Richard,

richard at nod.at wrote on Fri,  2 Aug 2024 22:05:09 +0200:

> res needs to be large enough to store both strings rem and target,
> plus the path separator and the terminator.
> Currently the space for the path separator is not accounted, so
> the heap is corrupted by one byte.

Mmm, subtle.

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks for the fix!
Miquèl


More information about the U-Boot mailing list