Files
OpenRGB/StringUtils.h
T
Adam Honse d2dd9dcc73 Address security issues in release_candidate_1.0rc3
- CVE-2026-59682: OpenRGB: arbitrary file overwrite and deletion local and remote
- CVE-2026-59683: OpenRGB: local and remote system compromise via arbitrary file write using attacker controlled strings
- CVE-2026-18794: OpenRGB: insufficient input data checks lead to Denial-of-Service, memory overread and overwrite
2026-08-13 00:59:02 -05:00

26 lines
1.1 KiB
C++

/*---------------------------------------------------------*\
| StringUtils.h |
| |
| String utility functions |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <string>
class StringUtils
{
public:
static const char* wchar_to_char(const wchar_t* pwchar);
static std::string wchar_to_string(const wchar_t* pwchar);
static std::string wstring_to_string(const std::wstring wstring);
static std::string u16string_to_string(const std::u16string wstring);
static const std::string remove_null_terminating_chars(std::string input);
static std::string u32int_to_hexString(unsigned int value);
static std::string make_filename(std::string input);
static std::string normalize_hex_id(const std::string& id);
};