URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b8bb51889e3c184b6c5b15eb2cdb84c45332eb16
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark
Commits:
b8bb518 by Guy Harris (guy@xxxxxxxxxxxx):
Oops, I missed one "cast a char to int and use it as a subscript" case.
Casting a signed char with a negative value to int will preserve the
value, so it'll still be a negative subscript. Cast to guchar instead,
to make sure 0x80 through 0xFF are treated as 128 to 255, not -128 to
-1.
Change-Id: I1f0b33ba3686e963d45317b45465ff335431d17f
Reviewed-on: https://code.wireshark.org/review/4742
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit 71a42e0fbcc8ac838f936dd88e05681ef07f2bbf)
Reviewed-on: https://code.wireshark.org/review/4743
Actions performed:
from 23b92bb Better fix - just check that the upper and lower nibbles are >= 0xA.
adds b8bb518 Oops, I missed one "cast a char to int and use it as a subscript" case.
Summary of changes:
epan/strutil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)