[PATCH 0/3] hfsplus: fix series for non-english names and attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hin-Tak Leung <htl10@xxxxxxxxxxxxxxxxxxxxx>

This is a series of 3 patches which corrects issues in HFS+
concerning the use of non-english file names and attributes.
Names and attributes are stored internally as UTF-16 units up to a
fixed maximum size, and convert to and from user-representation by NLS.
The code incorrectly assume that NLS string lengths are equal
to unicode lengths, which is only true for English ascii usage.

This is largely a repost (with some editing/formatting to the messages) of the
earlier 4-patch series, as the original 4th patch
"hfsplus: fixes error propagation of hfsplus_asc2uni" is no longer needed.
The 4th patch is functionally identical to "hfsplus: fix longname handling"
from Sougata Santra posted a few weeks ago.

Patch 1 differs from the single patch sent to Andrew Morton by one
kzalloc to kmalloc change, as the kzalloc is not needed on examination.

The others only differ from the previous series of 4 posted to fs-devel
by editing/formatting and additions of CC's of the commit messages
- there is no code change.

Hin-Tak Leung (3):
  hfsplus: fixes worst-case unicode to char conversion of file names and
    attributes
  hfsplus: correct usage of HFSPLUS_ATTR_MAX_STRLEN for non-English
    attributes
  hfsplus: remove unused routine hfsplus_attr_build_key_uni

 fs/hfsplus/attributes.c     | 36 ++++----------------------------
 fs/hfsplus/dir.c            | 11 ++++++++--
 fs/hfsplus/hfsplus_fs.h     |  3 ---
 fs/hfsplus/xattr.c          | 50 ++++++++++++++++++++++++++++++---------------
 fs/hfsplus/xattr_security.c | 47 +++++++++++++++++++++++-------------------
 fs/hfsplus/xattr_trusted.c  | 30 ++++++++++++++++-----------
 fs/hfsplus/xattr_user.c     | 30 ++++++++++++++++-----------
 7 files changed, 108 insertions(+), 99 deletions(-)

-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux