Check for an empty vector before popping (#350)
Protect from possible seg. fault Signed-off-by: David Galiffi <David.Galiffi@amd.com>
このコミットが含まれているのは:
1 親
f9ae806b78
コミット
59e7b4b501
1ファイル変更
+5
-2
@@ -526,8 +526,11 @@ profiler_function(py::object pframe, const char* swhat, py::object arg)
|
||||
|
||||
// stop function
|
||||
auto _profiler_return = [&]() {
|
||||
_config.records.back()();
|
||||
_config.records.pop_back();
|
||||
if(!_config.records.empty())
|
||||
{
|
||||
_config.records.back()();
|
||||
_config.records.pop_back();
|
||||
}
|
||||
};
|
||||
|
||||
// process what
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする