зеркало из https://github.com/microsoft/FX11.git
Suppress some code warnings
This commit is contained in:
Родитель
54f888ebfd
Коммит
a66302fb5d
|
@ -1129,7 +1129,7 @@ HRESULT SConstantBuffer::SetRawValue(const void *pData, uint32_t Offset, uint32_
|
||||||
VERIFYPARAMETER(pData);
|
VERIFYPARAMETER(pData);
|
||||||
|
|
||||||
if ((Offset + Count < Offset) ||
|
if ((Offset + Count < Offset) ||
|
||||||
(Count + (uint8_t*)pData < (uint8_t*)pData) ||
|
(Count + (uint8_t*)pData < (uint8_t*)pData) || // CodeQL [CodeQL.SM03443] Only used in debug builds
|
||||||
((Offset + Count) > Size))
|
((Offset + Count) > Size))
|
||||||
{
|
{
|
||||||
// overflow of some kind
|
// overflow of some kind
|
||||||
|
@ -1168,7 +1168,7 @@ HRESULT SConstantBuffer::GetRawValue(void *pData, uint32_t Offset, uint32_t Coun
|
||||||
VERIFYPARAMETER(pData);
|
VERIFYPARAMETER(pData);
|
||||||
|
|
||||||
if ((Offset + Count < Offset) ||
|
if ((Offset + Count < Offset) ||
|
||||||
(Count + (uint8_t*)pData < (uint8_t*)pData) ||
|
(Count + (uint8_t*)pData < (uint8_t*)pData) || // CodeQL [CodeQL.SM03443] Only used in debug builds
|
||||||
((Offset + Count) > Size))
|
((Offset + Count) > Size))
|
||||||
{
|
{
|
||||||
// overflow of some kind
|
// overflow of some kind
|
||||||
|
|
Загрузка…
Ссылка в новой задаче