mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Remove unneccessary >= 0 check in a UTF32 comparison
Resolves Coverity CID 1461523.
This commit is contained in:
parent
ddbba17e57
commit
66e71c7fd2
1 changed files with 1 additions and 2 deletions
|
@ -2425,8 +2425,7 @@ static bool check_ok_utf8(const unsigned char* start, const unsigned char* end)
|
|||
if ( result != conversionOK )
|
||||
return false;
|
||||
|
||||
if ( ( output[0] >= 0x0000 && output[0] <= 0x001F ) ||
|
||||
( output[0] == 0x007F ) ||
|
||||
if ( ( output[0] <= 0x001F ) || ( output[0] == 0x007F ) ||
|
||||
( output[0] >= 0x0080 && output[0] <= 0x009F ) )
|
||||
// Control characters
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue