diff options
| author | John Zulauf <jzulauf@LunarG.com> | 2018-05-01 13:28:27 -0600 |
|---|---|---|
| committer | John Zulauf <32470354+jzulauf-lunarg@users.noreply.github.com> | 2018-05-02 09:54:24 -0600 |
| commit | f6759e8a40ac0217667e319c469932c12f4e1ebb (patch) | |
| tree | 9ee4f4aeba24314341255e02176b148ab2e3159f | |
| parent | 01423238d40332394ef968bc4073548e4037865f (diff) | |
| download | usermoji-f6759e8a40ac0217667e319c469932c12f4e1ebb.tar.xz | |
layers: Fix segv during DebugReportCallback setup
Change debug log message to use correct VkObjectType to
VkDebugReportObjectTypeEXT method, avoiding the index out-of-bounds
lookup that caused a SEGV.
Change-Id: Ibb6e485eccb36ff0e9b49f0722d8f2d0bf660982
| -rw-r--r-- | layers/vk_layer_logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h index 6d5c55bf..ba0206fd 100644 --- a/layers/vk_layer_logging.h +++ b/layers/vk_layer_logging.h @@ -410,7 +410,7 @@ static inline bool debug_messenger_log_msg(const debug_report_data *debug_data, } } else if (!layer_dbg_node->is_messenger && layer_dbg_node->report.msgFlags & object_flags) { auto it = debug_data->debugObjectNameMap->find(callback_data->pObjects[0].objectHandle); - VkDebugReportObjectTypeEXT object_type = get_debug_report_enum[callback_data->pObjects[0].objectType]; + VkDebugReportObjectTypeEXT object_type = convertCoreObjectToDebugReportObject(callback_data->pObjects[0].objectType); if (it == debug_data->debugObjectNameMap->end()) { if (layer_dbg_node->report.pfnMsgCallback(object_flags, object_type, callback_data->pObjects[0].objectHandle, 0, callback_data->messageIdNumber, callback_data->pMessageIdName, |
