Wireshark-commits: [Wireshark-commits] master-2.6 37d1cf1: smb: fix wrong exported smb2 object due
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 25 May 2018 19:21:11 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=37d1cf1e7cbfeefa26cbf1dbb2c5fdf6f2fa2ae7
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark

Commits:

37d1cf1 by Peter Wu (peter@xxxxxxxxxxxxx):

    smb: fix wrong exported smb2 object due to hash collision
    
    While SMB1 FIDs are 16-bit, those used in SMB2 are a GUID of 128-bit
    which are compressed down to 32-bit using g_str_hash. To reduce
    collision probability which could associate wrong file data with an
    Exported Object entry, do not truncate this hash value to 16 bits.
    
    Bug: 14662
    Change-Id: I2a353eca96b0f5ed2157f3678280642151e2e4e7
    Reviewed-on: https://code.wireshark.org/review/27794
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Petri-Dish: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
    Reviewed-by: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    (cherry picked from commit 67051511eda77d96fe58d7c1b883ccb4999b97ca)
    Reviewed-on: https://code.wireshark.org/review/27806
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  0123293   media_type: Default decode application/octet-stream as data
    adds  37d1cf1   smb: fix wrong exported smb2 object due to hash collision


Summary of changes:
 epan/dissectors/packet-smb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)