mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-07 05:22:03 -05:00
correct utf16le check
git-svn: trunk@3353
This commit is contained in:
@@ -60,7 +60,7 @@ static unsigned int u2a(uint8_t *dest, unsigned int len) {
|
||||
for (i=0; i<j; i+=2)
|
||||
cnt+=(src[i]!=0 && src[i+1]==0);
|
||||
|
||||
if (cnt*2 < j)
|
||||
if (cnt*4 < j)
|
||||
return len;
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ static unsigned int u2a(uint8_t *dest, unsigned int len) {
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
/*********************
|
||||
MT realted stuff
|
||||
*********************/
|
||||
|
||||
Reference in New Issue
Block a user