Wireshark-commits: [Wireshark-commits] master 8a9bba8: Fix Bug 9853: 'Lua: trying to get/access a P

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 9 Mar 2014 09:57:38 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8a9bba861ae207a163c58711993443b96beb48e9
Submitter: Alexis La Goutte (alexis.lagoutte@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

8a9bba8 by Hadriel Kaplan (hadrielk@xxxxxxxxx):

    Fix Bug 9853: 'Lua: trying to get/access a Preference before its registered causes a segfault'
    
    Accessing a pref before it's registered causes a segfault, because prefs_p->next
    is not being checked for NULL in wslua_proto.c:Prefs__index().
    
    Change-Id: I270978ddb9238a9e8d2c533a96fc01ee0df385c7
    Reviewed-on: https://code.wireshark.org/review/563
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    Reviewed-by: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
    

Actions performed:

    from  ff6cc9b   Add pkg-config file
    adds  8a9bba8   Fix Bug 9853: 'Lua: trying to get/access a Preference before its registered causes a segfault'


Summary of changes:
 epan/wslua/wslua_proto.c |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)