mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix opening empty path
@ 2021-05-07 10:56 Sascha Hauer
  2021-05-07 10:56 ` [PATCH 1/3] fs: check for empty name in getname() Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sascha Hauer @ 2021-05-07 10:56 UTC (permalink / raw)
  To: Barebox List; +Cc: Neeraj Pal

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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-07 10:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 10:56 [PATCH 0/3] Fix opening empty path Sascha Hauer
2021-05-07 10:56 ` [PATCH 1/3] fs: check for empty name in getname() Sascha Hauer
2021-05-07 10:56 ` [PATCH 2/3] fs: check for valid name in filename_lookup() Sascha Hauer
2021-05-07 10:56 ` [PATCH 3/3] fs: check getname() return value in open() Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox