зеркало из https://github.com/microsoft/DirectXTK.git
Suppress warning from CodeQL (#480)
This commit is contained in:
Родитель
497378076b
Коммит
fc904593c1
|
@ -299,7 +299,7 @@ std::unique_ptr<Model> DirectX::Model::CreateFromCMO(
|
|||
if (dataSize < usedSize)
|
||||
throw std::runtime_error("End of file");
|
||||
|
||||
auto meshName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize));
|
||||
auto meshName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional.
|
||||
|
||||
usedSize += sizeof(wchar_t)*(*nName);
|
||||
if (dataSize < usedSize)
|
||||
|
@ -328,7 +328,7 @@ std::unique_ptr<Model> DirectX::Model::CreateFromCMO(
|
|||
if (dataSize < usedSize)
|
||||
throw std::runtime_error("End of file");
|
||||
|
||||
auto matName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize));
|
||||
auto matName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional.
|
||||
|
||||
usedSize += sizeof(wchar_t)*(*nName);
|
||||
if (dataSize < usedSize)
|
||||
|
@ -350,7 +350,7 @@ std::unique_ptr<Model> DirectX::Model::CreateFromCMO(
|
|||
if (dataSize < usedSize)
|
||||
throw std::runtime_error("End of file");
|
||||
|
||||
auto psName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize));
|
||||
auto psName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional.
|
||||
|
||||
usedSize += sizeof(wchar_t)*(*nName);
|
||||
if (dataSize < usedSize)
|
||||
|
@ -365,7 +365,7 @@ std::unique_ptr<Model> DirectX::Model::CreateFromCMO(
|
|||
if (dataSize < usedSize)
|
||||
throw std::runtime_error("End of file");
|
||||
|
||||
auto txtName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize));
|
||||
auto txtName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional.
|
||||
|
||||
usedSize += sizeof(wchar_t)*(*nName);
|
||||
if (dataSize < usedSize)
|
||||
|
@ -598,7 +598,7 @@ std::unique_ptr<Model> DirectX::Model::CreateFromCMO(
|
|||
if (dataSize < usedSize)
|
||||
throw std::runtime_error("End of file");
|
||||
|
||||
auto boneName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize));
|
||||
auto boneName = reinterpret_cast<const wchar_t*>(static_cast<const void*>(meshData + usedSize)); // [CodeQL.SM02986]: The cast here is intentional.
|
||||
|
||||
usedSize += sizeof(wchar_t) * (*nName);
|
||||
if (dataSize < usedSize)
|
||||
|
|
Загрузка…
Ссылка в новой задаче