onnxruntime
0f43e161 - [QNN-EP] Fix use-after-free of logger object (#27804)

Commit
112 days ago
[QNN-EP] Fix use-after-free of logger object (#27804) ### Description Update logger object in QnnBackendManager::SetupBackend. ### Motivation and Context While generating weight sharing context binary, Inference Session is created once for each graph. Inference session creates logger object and passes it to QnnBackendManager. QnnBackendManager stores this pointer in logger_ pointer and holds it long after Inference Session destroys Logger. On next Inference Session, another Logger object is created but QnnBackendManager do not use this as backend_setup_completed_ is already set, using this causes UAF. Co-authored-by: Trishansh Bhardwaj <quic_tbhardwa@quicinc.com>
Author
Parents
Loading