Commit 3ba506cd authored by Ben Avison's avatar Ben Avison
Browse files

Compatibility change for Microsoft security fix MS09-001.

Detail:
  Security fix MS09-001 (detailed in Microsoft Knowledge base article KB958687)
  fixes some vulnerabilities in the SMB protocol which LanManFS uses. This
  highlighted an error in SMB_WriteRaw which reported zero data bytes but then
  supplied an offset to the non existant bytes: this is now faulted by Windows.
  As there are no data bytes, the offset should also be zero.
Admin:
  Fix received from Rob Sprowson 2009-01-19.

Version 2.31. Tagged as 'LanManFS-2_31'
parent e57ad57f
/* (2.30)
/* (2.31)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.68.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 2.30
#define Module_MajorVersion_CMHG 2.31
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 16 Feb 2004
#define Module_Date_CMHG 15 Apr 2009
#define Module_MajorVersion "2.30"
#define Module_Version 230
#define Module_MajorVersion "2.31"
#define Module_Version 231
#define Module_MinorVersion ""
#define Module_Date "16 Feb 2004"
#define Module_Date "15 Apr 2009"
#define Module_ApplicationDate "16-Feb-04"
#define Module_ApplicationDate "15-Apr-09"
#define Module_ComponentName "LanManFS"
#define Module_ComponentPath "RiscOS/Sources/Networking/Omni/Protocols/LanManFS"
#define Module_FullVersion "2.30"
#define Module_HelpVersion "2.30 (16 Feb 2004)"
#define Module_LibraryVersionInfo "2:30"
#define Module_FullVersion "2.31"
#define Module_HelpVersion "2.31 (15 Apr 2009)"
#define Module_LibraryVersionInfo "2:31"
......@@ -816,7 +816,7 @@ static err_t SMB_WriteRaw ( hSHARE hS, int fid, int offset,
SMB_TxWords[8] = 0; /* Reserved */
SMB_TxWords[9] = 0; /* Reserved */
SMB_TxWords[10] = 0; /* # of data bytes immediately following */
SMB_TxWords[11] = 0x3C; /* Offset to immediate data bytes */
SMB_TxWords[11] = 0; /* Offset to immediate data bytes */
res = Do_SMB ( hS, SMBwriteBraw, 12, NULL, NULL );
if ( res != OK )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment