Wireshark-commits: [Wireshark-commits] master c82cbfd: wslua: Abort on out of memory

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 10 Apr 2016 21:51:29 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c82cbfdc724a8a9896bd27225e33a0e5a8fc2e1e
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

c82cbfd by Peter Wu (peter@xxxxxxxxxxxxx):

    wslua: Abort on out of memory
    
    The current wslua code does not properly handle out of memory
    conditions. Since recovering from OOM is difficult in many places, just
    abort the program (which is done by g_realloc).
    
    Change-Id: Idae68d08c90c82ba5df18a28cc1e507d61d20e78
    Reviewed-on: https://code.wireshark.org/review/14786
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  4a37458   lua: fix reload with -Xlua_script
    adds  c82cbfd   wslua: Abort on out of memory


Summary of changes:
 epan/wslua/init_wslua.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)