mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Terminate wide strings with null char in ss_convert_to_wide
Closes #2175.
This commit is contained in:
@@ -251,6 +251,7 @@ SIZED_STRING* ss_convert_to_wide(SIZED_STRING* s)
|
||||
}
|
||||
|
||||
wide->length = s->length * 2;
|
||||
wide->c_string[wide->length] = '\x00';
|
||||
wide->flags = s->flags | STRING_FLAGS_WIDE;
|
||||
|
||||
return wide;
|
||||
|
||||
Reference in New Issue
Block a user