Revert the fixes for the "vulnerable command line parsing"

revert these commits:
- e615c8c63f
- 45c245645d.
- cc1192c7d9.
This commit is contained in:
Tino Reichardt
2023-04-05 19:08:32 +02:00
parent aaf1f122b8
commit d94284915a
4 changed files with 23 additions and 101 deletions
-10
View File
@@ -1206,16 +1206,6 @@ UString &UString::operator=(const UString &s)
return *this;
}
void UString::AddFrom(const wchar_t *s, unsigned len) // no check
{
if (len) {
Grow(len);
wmemcpy(_chars + _len, s, len);
_len += len;
_chars[_len] = 0;
}
}
void UString::SetFrom(const wchar_t *s, unsigned len) // no check
{
if (len > _limit)