Wireshark-commits: [Wireshark-commits] master-2.4 4594f47: Add routines to load Lua programs that a
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 17 Dec 2018 22:06:42 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=4594f47e3b6cb3592383a583416a4b79f5df6eac
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.4
Repository: wireshark

Commits:

4594f47 by Guy Harris (guy@xxxxxxxxxxxx):

    Add routines to load Lua programs that assume the path is UTF-8 on Windows.
    
    Add ws_dofile() and ws_loadfile(), which are like the substitute
    dofile() and loadfile() we provide, but that, on Windows, take a UTF-8
    path rather than a path in the local code page.
    
    Use that to load console.lua.
    
    This means we can load console.lua on Windows even if the full path to
    it includes non-ASCII characters.
    
    Bug: 15118
    Change-Id: Iaa00639563fe53a34e1e24e42022f3886a38e7c5
    Reviewed-on: https://code.wireshark.org/review/31075
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 5953756305388724545f0df46d286be2f02c048a)
    Reviewed-on: https://code.wireshark.org/review/31078
    

Actions performed:

    from  f4fd3c9   GSM A: detect buffer overrun when decoding MS Classmark 3 IE
     add  4594f47   Add routines to load Lua programs that assume the path is UTF-8 on Windows.


Summary of changes:
 epan/wslua/template-init.lua |   6 +-
 epan/wslua/wslua_util.c      | 162 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 166 insertions(+), 2 deletions(-)