On Fri, Mar 06, 2015 at 10:12:38AM -0500, Peter Hurley wrote: > Properties may contain path names which are not NUL-terminated. > For example, the 'stdout-path' property allows the form 'path:options', > where the ':' character terminates the path specifier. > > Allow these path names to be used in-place for path descending; > add fdt_path_offset_namelen(), which limits the path name to 'namelen' > characters. > > Reimplement fdt_path_offset() as a trivial wrapper. > > Signed-off-by: Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> I think this function is a good idea, however I would like to see a testcase for it. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Attachment:
pgp2FXDWEIhwj.pgp
Description: PGP signature