Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6a98297e
Commit
6a98297e
authored
May 28, 2002
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Fix potential 1 byte overflow in fs/ntfs/unistr.c::ntfs_ucstonls().
Also, minor updates/fixes to docs and comments.
parent
19a27c50
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
Documentation/filesystems/ntfs.txt
Documentation/filesystems/ntfs.txt
+3
-3
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+3
-3
fs/ntfs/dir.c
fs/ntfs/dir.c
+2
-2
fs/ntfs/unistr.c
fs/ntfs/unistr.c
+2
-2
No files found.
Documentation/filesystems/ntfs.txt
View file @
6a98297e
...
...
@@ -91,9 +91,9 @@ case_sensitive=<BOOL> If case_sensitive is specified, treat all file names as
driver will never create short file names and will
remove them on rename/delete of the corresponding long
file name.
Note that
by default / when case_sensitive is set to
FALSE, files remain accessible via their short file
name, if it exists
.
Note that
files remain accessible via their short file
name, if it exists. If case_sensitive, you will need to
provide the correct case of the short file name
.
errors=opt What to do when critical file system errors are found.
Following values can be used for "opt":
...
...
fs/ntfs/ChangeLog
View file @
6a98297e
...
...
@@ -33,9 +33,8 @@ ToDo:
- Add new mount option case_sensitive, to determine if the driver
treats file names as case sensitive or not. If case sensitive, create
file names in the POSIX namespace. Otherwise create file names in the
LONG/WIN32 namespace. By default, or when case_sensitive is set to
FALSE, files remain accessible via their short file name, if it
exists.
LONG/WIN32 namespace. Note, files remain accessible via their short
file name, if it exists.
- Remove really dumb logic bug in boot sector recovery code.
- Fix dcache aliasing issues wrt short/long file names via changes
to fs/ntfs/dir.c::ntfs_lookup_inode_by_name() and
...
...
@@ -44,6 +43,7 @@ ToDo:
return information about the matching file name if the case is not
matching or the match is a short file name. See comments above the
function definition for details.
- Fix potential 1 byte overflow in fs/ntfs/unistr.c::ntfs_ucstonls().
- TODO: (AIA) Change ntfs_lookup()...
2.0.7 - Minor cleanups and updates for changes in core kernel code.
...
...
fs/ntfs/dir.c
View file @
6a98297e
...
...
@@ -200,7 +200,7 @@ u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const uchar_t *uname,
"and if that doesn't find any "
"errors please report you saw "
"this message to "
"linux-ntfs@lists.sf.net."
);
"linux-ntfs
-dev
@lists.sf.net."
);
goto
dir_err_out
;
}
...
...
@@ -456,7 +456,7 @@ u64 ntfs_lookup_inode_by_name(ntfs_inode *dir_ni, const uchar_t *uname,
"and if that doesn't find any "
"errors please report you saw "
"this message to "
"linux-ntfs@lists.sf.net."
);
"linux-ntfs
-dev
@lists.sf.net."
);
ntfs_unmap_page
(
page
);
goto
dir_err_out
;
}
...
...
fs/ntfs/unistr.c
View file @
6a98297e
...
...
@@ -333,7 +333,7 @@ int ntfs_ucstonls(const ntfs_volume *vol, const uchar_t *ins,
}
if
(
!
ns
)
{
ns_len
=
ins_len
*
NLS_MAX_CHARSET_SIZE
;
ns
=
(
unsigned
char
*
)
kmalloc
(
ns_len
,
GFP_NOFS
);
ns
=
(
unsigned
char
*
)
kmalloc
(
ns_len
+
1
,
GFP_NOFS
);
if
(
!
ns
)
goto
mem_err_out
;
}
...
...
@@ -352,7 +352,7 @@ retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o,
~
63
,
GFP_NOFS
);
if
(
tc
)
{
memcpy
(
tc
,
ns
,
ns_len
);
ns_len
=
(
ns_len
+
64
)
&
~
63
;
ns_len
=
(
(
ns_len
+
64
)
&
~
63
)
-
1
;
kfree
(
ns
);
ns
=
tc
;
goto
retry
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment