diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2013-12-02 16:19:09 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2013-12-02 16:19:09 +0000 |
commit | cd0d00732a6c9a484872920b4ef65e6a770c76c4 (patch) | |
tree | 94ac9c4b1043ffe88a7f315843aa9a6678d3d7d8 /sys/ntfs/ntfs_subr.h | |
parent | e5e4e461a2c78cd46646ba8a7f66ea2b1cb958be (diff) |
Avoid truncating 64-bit on disk attribute values to 32-bits. Otherwise an
attribute's data length value wraps at 4GB.
ok krw@
Diffstat (limited to 'sys/ntfs/ntfs_subr.h')
-rw-r--r-- | sys/ntfs/ntfs_subr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ntfs/ntfs_subr.h b/sys/ntfs/ntfs_subr.h index 4285ec24720..dc30cad289c 100644 --- a/sys/ntfs/ntfs_subr.h +++ b/sys/ntfs/ntfs_subr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ntfs_subr.h,v 1.7 2013/05/30 20:11:06 guenther Exp $ */ +/* $OpenBSD: ntfs_subr.h,v 1.8 2013/12/02 16:19:08 jsing Exp $ */ /* $NetBSD: ntfs_subr.h,v 1.1 2002/12/23 17:38:33 jdolecek Exp $ */ /*- @@ -46,8 +46,8 @@ struct ntvattr { u_int32_t va_compression; u_int32_t va_compressalg; - u_int32_t va_datalen; - u_int32_t va_allocated; + u_int64_t va_datalen; + u_int64_t va_allocated; cn_t va_vcnstart; cn_t va_vcnend; u_int16_t va_index; |