Wireshark-commits: [Wireshark-commits] master 19d54ac: TSDNS: Add more wmem_strsplit return checks.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 21 Mar 2019 05:04:37 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=19d54ac364150cd6c76488d2c2a5b6fd081daa5a
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

19d54ac by Gerald Combs (gerald@xxxxxxxxxxxxx):

    TSDNS: Add more wmem_strsplit return checks.
    
    wmem_strsplit might return NULL, or it might return fewer tokens than
    requested. Add checks accordingly. Update the API documentation while
    we're here.
    
    Bug: 15619
    Change-Id: I55ae05a36d05252cf57e5c7047a441ef1b438a81
    Reviewed-on: https://code.wireshark.org/review/32494
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  6c11719   Get rid of unnecessary include.
     add  19d54ac   TSDNS: Add more wmem_strsplit return checks.


Summary of changes:
 epan/dissectors/packet-tsdns.c | 2 +-
 epan/wmem/wmem_strutl.h        | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)