ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-commits: [Wireshark-commits] master-2.4 cb694e7: Need to flag a variable as volatile, due

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 12 Apr 2018 02:29:18 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=cb694e751b7960cf9a1a8d298251ffa40408cade
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.4
Repository: wireshark

Commits:

cb694e7 by Guy Harris (guy@xxxxxxxxxxxx):

    Need to flag a variable as volatile, due to the use of exceptions.
    
    The exception mechanism is setjmp/longjmp-based, so we need to mark
    offset as volatile, otherwise the longjmp might not restore its value.
    
    Change-Id: Ib63070bbbbe1f16a93cb58aa7ee5ef2a5488df8a
    Reviewed-on: https://code.wireshark.org/review/26901
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 148f39d900b516cac575d7de689a44545a663c70)
    Reviewed-on: https://code.wireshark.org/review/26903
    

Actions performed:

    from  fe939a1   If a subdissector throws an exception, catch it and continue.
    adds  cb694e7   Need to flag a variable as volatile, due to the use of exceptions.


Summary of changes:
 epan/dissectors/packet-mp2t.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)