Explicitly set enums' type to avoid undefined behavior
Fixes oss-fuzz issue 31022. Fixes: QTBUG-92159 Pick-to: 6.1 Change-Id: I8f0dfbe0e198f9ac43754758d18db1f0842d6eae Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d05118bf10
commit
d15bfba176
@ -130,7 +130,7 @@ public:
|
||||
};
|
||||
|
||||
// encoding / toString values
|
||||
enum UrlFormattingOption {
|
||||
enum UrlFormattingOption : unsigned int {
|
||||
None = 0x0,
|
||||
RemoveScheme = 0x1,
|
||||
RemovePassword = 0x2,
|
||||
@ -147,7 +147,7 @@ public:
|
||||
NormalizePathSegments = 0x1000
|
||||
};
|
||||
|
||||
enum ComponentFormattingOption {
|
||||
enum ComponentFormattingOption : unsigned int {
|
||||
PrettyDecoded = 0x000000,
|
||||
EncodeSpaces = 0x100000,
|
||||
EncodeUnicode = 0x200000,
|
||||
|
Loading…
Reference in New Issue
Block a user