Wireshark-commits: [Wireshark-commits] master 9ec2cbb: Catch failure of _open_osfhandle().

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 16 Nov 2015 21:40:43 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=9ec2cbb1c2f2917a9b9e149def8da8c072134524
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

9ec2cbb by Guy Harris (guy@xxxxxxxxxxxx):

    Catch failure of _open_osfhandle().
    
    This may at least prevent the crash in bug 11702, by not returning
    "success" with bogus file handles of -1, if the opens fail due to
    leaks chewing up all the available slots.  More investigation needs to
    be done to see why we're leaking.
    
    Change-Id: I89ecff4b03bca140f05c838e1e2604a03409f803
    Ping-Bug: 11702
    Reviewed-on: https://code.wireshark.org/review/11881
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  0a0a811   catapult: fix sscanf buffer overflow
    adds  9ec2cbb   Catch failure of _open_osfhandle().


Summary of changes:
 capchild/capture_sync.c |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)