[coreboot] Patch to fix MAX_PATH in lar
mylesgw at gmail.com
Wed Feb 27 20:04:15 CET 2008
This patch addresses Peter's concerns about the safety of path lengths
with directory handling in lar. If this gets acked, I'll refactor my
original lar directory handling patch to use this.
The changes are all in util/lar/lib.c
use MAX_PATHLEN instead of defining a new MAX_PATH
do the math before any string operations and fail if the new
name will be larger than MAX_PATHLEN
use strcpy and strcat since we know it's safe.
Signed-off-by: Myles Watson <mylesgw at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1208 bytes
Desc: not available
More information about the coreboot