802eac475d
Don't shift by m_SystemMadeBy value which can potentially be an arbitrary (8 bit) integer and not necessarily one of the known (and small) wxZIP_SYSTEM_XXX values, this results in undefined behaviour whenever this value is greater than 32 or 64 (depending on int size) and is flagged as such by clang undefined behaviour sanitizer. To fix the problem, just use a more clear switch statement instead of using a bit pattern for the lookup, this function is not nearly performance-sensitive enough to worry about the overhead of the switch here (assuming it's even slower, in the first place...) and the new version is much more clear and maintainable. Credit to OSS-Fuzz: this solves its issue 3792. |
||
---|---|---|
.. | ||
msvc/wx | ||
wx |