jffs2: Add checks for long file name

Add filename length checks to prevent the creation of files and folders
that cannot be listed, unlinked or renamed by subsequent calls.
These changes are sufficient to make the jffs2fsrenamelongname and
jffs2nandfsrenamelongname testcases pass.

Updates #5073
This commit is contained in:
Loris Nardo
2024-08-13 07:02:04 +02:00
committed by Joel Sherrill
parent c2b3a517f6
commit b5767d2c60
2 changed files with 13 additions and 9 deletions

View File

@@ -65,14 +65,6 @@ actions:
- mdosfsfsrenamemaxlinks
- mimfsfsrenamemaxlinks
- mrfsfsrenamemaxlinks
- set-test-state:
reason: |
Fails because of #5073, JFFS2 seems to not have appart
limits on file name length
state: expected-fail
tests:
- jffs2fsrenamelongname
- jffs2nandfsrenamelongname
build-type: option
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG