summary refs log tree commit diff stats
path: root/results/scraper/fex/1654
blob: 54e6e9f2dc9552af11b469ef3ec4cf1fc9a882c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
AOTIR: Deleting the RAData inappropriately
https://github.com/FEX-Emu/FEX/blob/42a632093545d0bf74bb1d87e285e58fa18d0aef/External/FEXCore/Source/Interface/IR/AOTIR.cpp#L353

This is allocated using using FEXCore::Allocator::malloc, then it tries to get freed with C++ delete.
https://github.com/FEX-Emu/FEX/blob/42a632093545d0bf74bb1d87e285e58fa18d0aef/External/FEXCore/Source/Interface/IR/Passes/RegisterAllocationPass.cpp#L156

This is why when allocating it we have it in a unique_ptr with a custom deleter, but the code is just wrong here. 
`std::unique_ptr<IR::RegisterAllocationData, IR::RegisterAllocationDataDeleter> AllocData;`

This causes LLVM asan to just immediately barf.