Wireshark-commits: [Wireshark-commits] master-2.6 275bd75: wslua: fix NSTime:__tostring for negativ
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 25 May 2018 19:48:37 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=275bd75a317458cc4087ae77edd68c8e1f2d5846
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark

Commits:

275bd75 by Peter Wu (peter@xxxxxxxxxxxxx):

    wslua: fix NSTime:__tostring for negative values
    
    "nstime_t{A, B}" is defined as "A + B * 10^9" rather than an integer
    part A and fractional part B.
    
    Bug: 14720
    Change-Id: I5321db7d5ecea8f976291d2a22667b02162194e2
    Reviewed-on: https://code.wireshark.org/review/27775
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    (cherry picked from commit a1e5a157802428cee7c01ada4def7c818ebfea82)
    Reviewed-on: https://code.wireshark.org/review/27814
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  25d0ea6   Qt: fix use-after-free on error while saving exported packets
    adds  275bd75   wslua: fix NSTime:__tostring for negative values


Summary of changes:
 epan/wslua/wslua_nstime.c | 32 ++++++++++++++++++++++++++++++--
 test/lua/nstime.lua       |  9 ++++++++-
 2 files changed, 38 insertions(+), 3 deletions(-)