Wireshark-commits: [Wireshark-commits] master-2.2 0d94a4a: RPC: fix crash when using "Dissect unkno
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 22 Dec 2016 17:35:06 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=0d94a4ab9bff524997ffce709cbe047fc3664fbc
Submitter: Pascal Quantin (pascal.quantin@xxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark

Commits:

0d94a4a by Pascal Quantin (pascal.quantin@xxxxxxxxx):

    RPC: fix crash when using "Dissect unknown RPC program numbers" option
    
    When using this option, rpc_prog_info_value structure is not fully initialized.
    Depending on the memory allocator used, this can lead to a NULL pointer
    dereference or an access to a random memory block.
    Ensure that the structure if fully initialized and test pointer before
    dereferencing it.
    
    Bug: 13266
    Change-Id: Ifdc54b31c8dd3b2b6220dbe9ee27272758ff60ca
    Reviewed-on: https://code.wireshark.org/review/19385
    Reviewed-by: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Petri-Dish: Pascal Quantin <pascal.quantin@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit 8c70558d1651df0502e57f0b3bd56e1f70bc522b)
    Reviewed-on: https://code.wireshark.org/review/19386
    

Actions performed:

    from  beb720f   Lua: Include all BASE_PT_* to base table.
    adds  0d94a4a   RPC: fix crash when using "Dissect unknown RPC program numbers" option


Summary of changes:
 epan/dissectors/packet-rpc.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)