diff options
| author | Józef Kucia <joseph.kucia@gmail.com> | 2017-09-22 18:01:07 +0200 |
|---|---|---|
| committer | Józef Kucia <joseph.kucia@gmail.com> | 2017-09-22 19:22:22 +0200 |
| commit | d6a76d89728d9364decb0b45c30416dc0b3062c1 (patch) | |
| tree | c45ffcabe3bebd3b7a32800d1b0e2db67e0d2748 /layers/core_validation.cpp | |
| parent | 93bcd4fcc34dba81a64063821dd7081a9fa5229e (diff) | |
| download | usermoji-d6a76d89728d9364decb0b45c30416dc0b3062c1.tar.xz | |
layers: Avoid potential NULL pointer dereference
The boundDescriptorSets vector may be resized in
PreCallRecordCmdBindDescriptorSets().
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 124023d3..31e090f0 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5629,10 +5629,6 @@ static void PreCallRecordCmdPushDescriptorSetKHR(layer_data *device_data, VkComm if (set >= cb_state->lastBound[pipelineBindPoint].boundDescriptorSets.size()) { cb_state->lastBound[pipelineBindPoint].boundDescriptorSets.resize(set + 1); cb_state->lastBound[pipelineBindPoint].dynamicOffsets.resize(set + 1); - } else { - if (cb_state->lastBound[pipelineBindPoint].boundDescriptorSets[set]->IsPushDescriptor()) { - cb_state->lastBound[pipelineBindPoint].push_descriptors[set] = nullptr; - } } const auto &layout_state = getPipelineLayout(device_data, layout); std::unique_ptr<cvdescriptorset::DescriptorSet> new_desc{ |
