summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-05-13 20:52:09 +0000
committerJeremy Allison <jra@samba.org>2002-05-13 20:52:09 +0000
commita2f003e3b90ceed0e871c1917f22b00e6b36d000 (patch)
tree49d48b60d2e0ef8819dc8b99a4c9dc13527a3786 /source3/smbd
parentd53afaaff1da1967500788f7b1540297f3000972 (diff)
downloadsamba-a2f003e3b90ceed0e871c1917f22b00e6b36d000.tar.gz
samba-a2f003e3b90ceed0e871c1917f22b00e6b36d000.tar.bz2
samba-a2f003e3b90ceed0e871c1917f22b00e6b36d000.zip
Fix bug where setting end of file length to 8 was hitting erroneous
check for OS/2 EA set. This caused Macromedia movie files to not export correctly onto a Samba share. Originally spotted by Michel Stoop stoop@ncg.nl. Jeremy. (This used to be commit 6b4affde167104c760bd8dc3c8906511a7642853)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 77cd43f04f..d5c445c5f3 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2076,6 +2076,9 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
case SMB_INFO_STANDARD:
case SMB_INFO_QUERY_EA_SIZE:
{
+ if (total_data < l1_cbFile+4)
+ return(ERROR_DOS(ERRDOS,ERRinvalidparam));
+
/* access time */
tvs.actime = make_unix_date2(pdata+l1_fdateLastAccess);
@@ -2084,6 +2087,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
mode = SVAL(pdata,l1_attrFile);
size = IVAL(pdata,l1_cbFile);
+
break;
}