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>
Description
Languages
C++
100%