Fixes for "vulnerable command line parsing"

Signed-off-by: Sergey G. Brester <info@sebres.de>
Reviewed-by: Tino Reichardt <milky-7zip@mcmilk.de>
This commit is contained in:
sebres
2023-04-06 20:04:55 +02:00
committed by Tino Reichardt
parent d94284915a
commit 8cfdd747c8
3 changed files with 100 additions and 22 deletions

View File

@@ -628,6 +628,7 @@ public:
UString &operator=(char c) { return (*this)=((wchar_t)(unsigned char)c); }
UString &operator=(const wchar_t *s);
UString &operator=(const UString &s);
void AddFrom(const wchar_t *s, unsigned len); // no check
void SetFrom(const wchar_t *s, unsigned len); // no check
void SetFromBstr(LPCOLESTR s);
UString &operator=(const char *s);