forked from osmocom/wireshark
Fix a check.
Presumably the intent is to check for unsigned integer and signed integer types, not to check twice for unsigned integer types. Thanks and a tip of the Hatlo hat to Visual Studio Code Analyzer for finding this. Change-Id: Ie8e4d231af929ee8e626c5c9258c3356d5209f4f Reviewed-on: https://code.wireshark.org/review/26187 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
03474c1303
commit
ea0b580b97
|
@ -2054,7 +2054,8 @@ test_length(header_field_info *hfinfo, tvbuff_t *tvb,
|
|||
return;
|
||||
|
||||
if ((hfinfo->type == FT_STRINGZ) ||
|
||||
((encoding & (ENC_VARINT_PROTOBUF|ENC_VARINT_QUIC)) && (IS_FT_UINT(hfinfo->type) || IS_FT_UINT(hfinfo->type)))) {
|
||||
((encoding & (ENC_VARINT_PROTOBUF|ENC_VARINT_QUIC)) &&
|
||||
(IS_FT_UINT(hfinfo->type) || IS_FT_INT(hfinfo->type)))) {
|
||||
/* If we're fetching until the end of the TVB, only validate
|
||||
* that the offset is within range.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue