Wireshark-commits: [Wireshark-commits] master-2.0 5e9cd0a: Make sure nspr_getv20recordsize() return
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Thu, 2 Mar 2017 22:55:56 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=5e9cd0ab84f8d42621649d46a028fed926e263d7
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

5e9cd0a by Guy Harris (guy@xxxxxxxxxxxx):

    Make sure nspr_getv20recordsize() returns an unsigned value.
    
    The record size fields are guint8, but NSPR_V20RECORDSIZE_2BYTES was
    0x80, which has type int, promoting the result to int.  Make it 0x80U,
    which means everything is unsigned.
    
    This squelches a compiler warning.
    
    Change-Id: I1c63e485352a90c7f675ab0dacaaeba794235b35
    Reviewed-on: https://code.wireshark.org/review/20344
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit b98bb5188c9082a06a370483c9474a929e957659)
    Reviewed-on: https://code.wireshark.org/review/20346
    

Actions performed:

    from  7edc761   Add more sanity checks.
    adds  5e9cd0a   Make sure nspr_getv20recordsize() returns an unsigned value.


Summary of changes:
 wiretap/netscaler.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)