[PATCH 0/3] Fix opening empty path

Sascha Hauer s.hauer at pengutronix.de
Fri May 7 03:56:08 PDT 2021


barebox currently crashes when an empty path is passed to open().
This can be provoked with doing a 'nfs foo ""' on the command line. This
series fixes the issue.

Sascha Hauer (3):
  fs: check for empty name in getname()
  fs: check for valid name in filename_lookup()
  fs: check getname() return value in open()

 fs/fs.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

-- 
2.29.2




More information about the barebox mailing list