Simon Rozman 38fac2837f parser: Duplicate locale
The Release testing revealed that compiler might free temporary
std::locale instances sooner than we thought, exposing UaF.

On 64-bit arch, a reference takes 8 bytes, a std::locale copy takes 16
bytes. So duplicating a locale in each parser instance is not such a big
deal to risk an UaF.

Signed-off-by: Simon Rozman <simon@rozman.si>
2023-03-16 11:02:23 +01:00
2023-03-16 11:02:23 +01:00
2022-02-03 13:17:59 +01:00
2022-03-07 11:37:35 +01:00
2023-03-08 13:34:04 +01:00
Description
Standard C++ Library Extension
MIT 60 MiB
Languages
C++ 100%