SAGA: use-after-free warning
|Reported by:||criezy||Owned by:||bluegr|
Compiling the SAGA engine with clang reports a use-after-free warning in shorten.cpp line 526 (at the end of loadShortenFromStream()).
I am not familiar with this engine and this might be a false positive, but the code looks very suspicious:
if (size > 0)
free(unpackedBuffer); // <- free
return unpackedBuffer; // <- use after free
Ticket imported from: #3558052. Ticket imported from: bugs/6127.