From 076e4d1b144788e8e4215c4dca7aaa0613837a10 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 31 Mar 2026 15:13:00 -0700 Subject: [PATCH 1/4] CoPilot recommends using https: instead of http --- Auxiliary/DirectXTexEXR.cpp | 10 ++++++++++ CHANGELOG.md | 2 +- DDSTextureLoader/DDSTextureLoader11.cpp | 2 +- DDSTextureLoader/DDSTextureLoader11.h | 2 +- DDSTextureLoader/DDSTextureLoader12.cpp | 2 +- DDSTextureLoader/DDSTextureLoader12.h | 2 +- DDSTextureLoader/DDSTextureLoader9.cpp | 2 +- DDSTextureLoader/DDSTextureLoader9.h | 2 +- DirectXTex/BC.cpp | 2 +- DirectXTex/BC.h | 2 +- DirectXTex/BC4BC5.cpp | 2 +- DirectXTex/BC6HBC7.cpp | 2 +- DirectXTex/DDS.h | 2 +- DirectXTex/DirectXTex.h | 2 +- DirectXTex/DirectXTex.inl | 2 +- DirectXTex/DirectXTexCompress.cpp | 2 +- DirectXTex/DirectXTexCompressGPU.cpp | 2 +- DirectXTex/DirectXTexConvert.cpp | 2 +- DirectXTex/DirectXTexD3D11.cpp | 2 +- DirectXTex/DirectXTexD3D12.cpp | 2 +- DirectXTex/DirectXTexDDS.cpp | 2 +- DirectXTex/DirectXTexFlipRotate.cpp | 2 +- DirectXTex/DirectXTexHDR.cpp | 2 +- DirectXTex/DirectXTexImage.cpp | 2 +- DirectXTex/DirectXTexMipmaps.cpp | 2 +- DirectXTex/DirectXTexMisc.cpp | 2 +- DirectXTex/DirectXTexNormalMaps.cpp | 2 +- DirectXTex/DirectXTexP.h | 2 +- DirectXTex/DirectXTexPMAlpha.cpp | 2 +- DirectXTex/DirectXTexResize.cpp | 2 +- DirectXTex/DirectXTexTGA.cpp | 2 +- DirectXTex/DirectXTexUtil.cpp | 2 +- DirectXTex/DirectXTexWIC.cpp | 2 +- README.md | 2 +- ScreenGrab/ScreenGrab11.cpp | 2 +- ScreenGrab/ScreenGrab11.h | 2 +- ScreenGrab/ScreenGrab12.cpp | 2 +- ScreenGrab/ScreenGrab12.h | 2 +- ScreenGrab/ScreenGrab9.cpp | 2 +- ScreenGrab/ScreenGrab9.h | 2 +- Texassemble/AnimatedGif.cpp | 2 +- Texassemble/texassemble.cpp | 2 +- Texconv/ExtendedBMP.cpp | 2 +- Texconv/PortablePixMap.cpp | 2 +- Texconv/texconv.cpp | 2 +- Texdiag/texdiag.cpp | 2 +- WICTextureLoader/WICTextureLoader11.cpp | 2 +- WICTextureLoader/WICTextureLoader11.h | 2 +- WICTextureLoader/WICTextureLoader12.cpp | 2 +- WICTextureLoader/WICTextureLoader12.h | 2 +- WICTextureLoader/WICTextureLoader9.cpp | 2 +- WICTextureLoader/WICTextureLoader9.h | 2 +- 52 files changed, 61 insertions(+), 51 deletions(-) diff --git a/Auxiliary/DirectXTexEXR.cpp b/Auxiliary/DirectXTexEXR.cpp index b4ac4841..ffbcf9a1 100644 --- a/Auxiliary/DirectXTexEXR.cpp +++ b/Auxiliary/DirectXTexEXR.cpp @@ -75,6 +75,11 @@ namespace bool read(char c[], int n) override { + if (n < 0 || m_Position + n > m_DataSize) + { + throw std::out_of_range("Read request is out of range"); + } + memcpy(c, m_DataPtr + m_Position, n); m_Position += n; @@ -88,6 +93,11 @@ namespace void seekg(uint64_t pos) override { + if (pos > m_DataSize) + { + throw std::out_of_range("Seek position is out of range"); + } + m_Position = pos; } diff --git a/CHANGELOG.md b/CHANGELOG.md index 89606788..d42afac9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # DirectXTex texture processing library -http://go.microsoft.com/fwlink/?LinkId=248926 +https://go.microsoft.com/fwlink/?LinkId=248926 Release available for download on [GitHub](https://github.com/microsoft/DirectXTex/releases) diff --git a/DDSTextureLoader/DDSTextureLoader11.cpp b/DDSTextureLoader/DDSTextureLoader11.cpp index 9fa8309b..5c1bb18b 100644 --- a/DDSTextureLoader/DDSTextureLoader11.cpp +++ b/DDSTextureLoader/DDSTextureLoader11.cpp @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/DDSTextureLoader/DDSTextureLoader11.h b/DDSTextureLoader/DDSTextureLoader11.h index 21fe1692..341d6cf2 100644 --- a/DDSTextureLoader/DDSTextureLoader11.h +++ b/DDSTextureLoader/DDSTextureLoader11.h @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/DDSTextureLoader/DDSTextureLoader12.cpp b/DDSTextureLoader/DDSTextureLoader12.cpp index 219367e6..8239b74f 100644 --- a/DDSTextureLoader/DDSTextureLoader12.cpp +++ b/DDSTextureLoader/DDSTextureLoader12.cpp @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/DDSTextureLoader/DDSTextureLoader12.h b/DDSTextureLoader/DDSTextureLoader12.h index 50d02565..a431d5cb 100644 --- a/DDSTextureLoader/DDSTextureLoader12.h +++ b/DDSTextureLoader/DDSTextureLoader12.h @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/DDSTextureLoader/DDSTextureLoader9.cpp b/DDSTextureLoader/DDSTextureLoader9.cpp index e04cc5fb..1039586d 100644 --- a/DDSTextureLoader/DDSTextureLoader9.cpp +++ b/DDSTextureLoader/DDSTextureLoader9.cpp @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/DDSTextureLoader/DDSTextureLoader9.h b/DDSTextureLoader/DDSTextureLoader9.h index 3e1c7ca2..f2c474df 100644 --- a/DDSTextureLoader/DDSTextureLoader9.h +++ b/DDSTextureLoader/DDSTextureLoader9.h @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #pragma once diff --git a/DirectXTex/BC.cpp b/DirectXTex/BC.cpp index 30e1a541..c912f2f4 100644 --- a/DirectXTex/BC.cpp +++ b/DirectXTex/BC.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/BC.h b/DirectXTex/BC.h index 05ddcac2..6c582043 100644 --- a/DirectXTex/BC.h +++ b/DirectXTex/BC.h @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #pragma once diff --git a/DirectXTex/BC4BC5.cpp b/DirectXTex/BC4BC5.cpp index 263db980..d8cf8f23 100644 --- a/DirectXTex/BC4BC5.cpp +++ b/DirectXTex/BC4BC5.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/BC6HBC7.cpp b/DirectXTex/BC6HBC7.cpp index f78e6bd4..1f5d0058 100644 --- a/DirectXTex/BC6HBC7.cpp +++ b/DirectXTex/BC6HBC7.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DDS.h b/DirectXTex/DDS.h index 9a6ba033..ab729c58 100644 --- a/DirectXTex/DDS.h +++ b/DirectXTex/DDS.h @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/DirectXTex/DirectXTex.h b/DirectXTex/DirectXTex.h index b35a7b0d..02caff5b 100644 --- a/DirectXTex/DirectXTex.h +++ b/DirectXTex/DirectXTex.h @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #pragma once diff --git a/DirectXTex/DirectXTex.inl b/DirectXTex/DirectXTex.inl index c5caf6cb..65e10814 100644 --- a/DirectXTex/DirectXTex.inl +++ b/DirectXTex/DirectXTex.inl @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #pragma once diff --git a/DirectXTex/DirectXTexCompress.cpp b/DirectXTex/DirectXTexCompress.cpp index b57e3505..bb87f649 100644 --- a/DirectXTex/DirectXTexCompress.cpp +++ b/DirectXTex/DirectXTexCompress.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexCompressGPU.cpp b/DirectXTex/DirectXTexCompressGPU.cpp index 2a9d97d7..f0b87504 100644 --- a/DirectXTex/DirectXTexCompressGPU.cpp +++ b/DirectXTex/DirectXTexCompressGPU.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexConvert.cpp b/DirectXTex/DirectXTexConvert.cpp index 4a5bc673..17a8a19e 100644 --- a/DirectXTex/DirectXTexConvert.cpp +++ b/DirectXTex/DirectXTexConvert.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexD3D11.cpp b/DirectXTex/DirectXTexD3D11.cpp index e87e659a..8ea659a8 100644 --- a/DirectXTex/DirectXTexD3D11.cpp +++ b/DirectXTex/DirectXTexD3D11.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexD3D12.cpp b/DirectXTex/DirectXTexD3D12.cpp index db6af0cf..2bf8ee0f 100644 --- a/DirectXTex/DirectXTexD3D12.cpp +++ b/DirectXTex/DirectXTexD3D12.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexDDS.cpp b/DirectXTex/DirectXTexDDS.cpp index a6827f5b..d4281dd9 100644 --- a/DirectXTex/DirectXTexDDS.cpp +++ b/DirectXTex/DirectXTexDDS.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexFlipRotate.cpp b/DirectXTex/DirectXTexFlipRotate.cpp index 1b26e685..cef81a34 100644 --- a/DirectXTex/DirectXTexFlipRotate.cpp +++ b/DirectXTex/DirectXTexFlipRotate.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexHDR.cpp b/DirectXTex/DirectXTexHDR.cpp index f2572ad7..1423d737 100644 --- a/DirectXTex/DirectXTexHDR.cpp +++ b/DirectXTex/DirectXTexHDR.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexImage.cpp b/DirectXTex/DirectXTexImage.cpp index d2c7d408..cf4c47b8 100644 --- a/DirectXTex/DirectXTexImage.cpp +++ b/DirectXTex/DirectXTexImage.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexMipmaps.cpp b/DirectXTex/DirectXTexMipmaps.cpp index 0b0e9e1c..f4c02404 100644 --- a/DirectXTex/DirectXTexMipmaps.cpp +++ b/DirectXTex/DirectXTexMipmaps.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexMisc.cpp b/DirectXTex/DirectXTexMisc.cpp index d677211f..95a8834f 100644 --- a/DirectXTex/DirectXTexMisc.cpp +++ b/DirectXTex/DirectXTexMisc.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexNormalMaps.cpp b/DirectXTex/DirectXTexNormalMaps.cpp index cf4ea888..3ad10e1b 100644 --- a/DirectXTex/DirectXTexNormalMaps.cpp +++ b/DirectXTex/DirectXTexNormalMaps.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexP.h b/DirectXTex/DirectXTexP.h index be209291..039cba49 100644 --- a/DirectXTex/DirectXTexP.h +++ b/DirectXTex/DirectXTexP.h @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #pragma once diff --git a/DirectXTex/DirectXTexPMAlpha.cpp b/DirectXTex/DirectXTexPMAlpha.cpp index 059af95f..9750d782 100644 --- a/DirectXTex/DirectXTexPMAlpha.cpp +++ b/DirectXTex/DirectXTexPMAlpha.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexResize.cpp b/DirectXTex/DirectXTexResize.cpp index b038b024..775d59dd 100644 --- a/DirectXTex/DirectXTexResize.cpp +++ b/DirectXTex/DirectXTexResize.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexTGA.cpp b/DirectXTex/DirectXTexTGA.cpp index f9f96799..71bd3855 100644 --- a/DirectXTex/DirectXTexTGA.cpp +++ b/DirectXTex/DirectXTexTGA.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexUtil.cpp b/DirectXTex/DirectXTexUtil.cpp index bcdbf818..ff8234f1 100644 --- a/DirectXTex/DirectXTexUtil.cpp +++ b/DirectXTex/DirectXTexUtil.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/DirectXTex/DirectXTexWIC.cpp b/DirectXTex/DirectXTexWIC.cpp index 2b67ab27..54e90eb0 100644 --- a/DirectXTex/DirectXTexWIC.cpp +++ b/DirectXTex/DirectXTexWIC.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- #include "DirectXTexP.h" diff --git a/README.md b/README.md index ccc7b7e5..7f550275 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # DirectXTex texture processing library -http://go.microsoft.com/fwlink/?LinkId=248926 +https://go.microsoft.com/fwlink/?LinkId=248926 Copyright (c) Microsoft Corporation. diff --git a/ScreenGrab/ScreenGrab11.cpp b/ScreenGrab/ScreenGrab11.cpp index f63440bd..b0e01232 100644 --- a/ScreenGrab/ScreenGrab11.cpp +++ b/ScreenGrab/ScreenGrab11.cpp @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/ScreenGrab/ScreenGrab11.h b/ScreenGrab/ScreenGrab11.h index 278d5c57..138c0053 100644 --- a/ScreenGrab/ScreenGrab11.h +++ b/ScreenGrab/ScreenGrab11.h @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/ScreenGrab/ScreenGrab12.cpp b/ScreenGrab/ScreenGrab12.cpp index 633dbba4..b199d3ac 100644 --- a/ScreenGrab/ScreenGrab12.cpp +++ b/ScreenGrab/ScreenGrab12.cpp @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/ScreenGrab/ScreenGrab12.h b/ScreenGrab/ScreenGrab12.h index 360413a5..6a9e7f82 100644 --- a/ScreenGrab/ScreenGrab12.h +++ b/ScreenGrab/ScreenGrab12.h @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/ScreenGrab/ScreenGrab9.cpp b/ScreenGrab/ScreenGrab9.cpp index 2b55b050..b75adefb 100644 --- a/ScreenGrab/ScreenGrab9.cpp +++ b/ScreenGrab/ScreenGrab9.cpp @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/ScreenGrab/ScreenGrab9.h b/ScreenGrab/ScreenGrab9.h index 8a4b822f..05a04140 100644 --- a/ScreenGrab/ScreenGrab9.h +++ b/ScreenGrab/ScreenGrab9.h @@ -11,7 +11,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/Texassemble/AnimatedGif.cpp b/Texassemble/AnimatedGif.cpp index f4b03992..07237f7b 100644 --- a/Texassemble/AnimatedGif.cpp +++ b/Texassemble/AnimatedGif.cpp @@ -10,7 +10,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/Texassemble/texassemble.cpp b/Texassemble/texassemble.cpp index 67e906f1..4cb476b1 100644 --- a/Texassemble/texassemble.cpp +++ b/Texassemble/texassemble.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/Texconv/ExtendedBMP.cpp b/Texconv/ExtendedBMP.cpp index 6edb9dcf..27ec5b18 100644 --- a/Texconv/ExtendedBMP.cpp +++ b/Texconv/ExtendedBMP.cpp @@ -9,7 +9,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/Texconv/PortablePixMap.cpp b/Texconv/PortablePixMap.cpp index c1764d0a..6d7f0b3c 100644 --- a/Texconv/PortablePixMap.cpp +++ b/Texconv/PortablePixMap.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/Texconv/texconv.cpp b/Texconv/texconv.cpp index 3340f51f..29ac430b 100644 --- a/Texconv/texconv.cpp +++ b/Texconv/texconv.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/Texdiag/texdiag.cpp b/Texdiag/texdiag.cpp index 4ce28999..ea6b548e 100644 --- a/Texdiag/texdiag.cpp +++ b/Texdiag/texdiag.cpp @@ -6,7 +6,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #ifdef _MSC_VER diff --git a/WICTextureLoader/WICTextureLoader11.cpp b/WICTextureLoader/WICTextureLoader11.cpp index 21e7dfa6..04fa1cec 100644 --- a/WICTextureLoader/WICTextureLoader11.cpp +++ b/WICTextureLoader/WICTextureLoader11.cpp @@ -17,7 +17,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/WICTextureLoader/WICTextureLoader11.h b/WICTextureLoader/WICTextureLoader11.h index caa5a64d..3a6b627f 100644 --- a/WICTextureLoader/WICTextureLoader11.h +++ b/WICTextureLoader/WICTextureLoader11.h @@ -17,7 +17,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/WICTextureLoader/WICTextureLoader12.cpp b/WICTextureLoader/WICTextureLoader12.cpp index 5aa787eb..8412ec11 100644 --- a/WICTextureLoader/WICTextureLoader12.cpp +++ b/WICTextureLoader/WICTextureLoader12.cpp @@ -14,7 +14,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/WICTextureLoader/WICTextureLoader12.h b/WICTextureLoader/WICTextureLoader12.h index 1206bd43..73c92837 100644 --- a/WICTextureLoader/WICTextureLoader12.h +++ b/WICTextureLoader/WICTextureLoader12.h @@ -14,7 +14,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkID=615561 //-------------------------------------------------------------------------------------- diff --git a/WICTextureLoader/WICTextureLoader9.cpp b/WICTextureLoader/WICTextureLoader9.cpp index bf13d03a..6e66c16b 100644 --- a/WICTextureLoader/WICTextureLoader9.cpp +++ b/WICTextureLoader/WICTextureLoader9.cpp @@ -13,7 +13,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 // http://go.microsoft.com/fwlink/?LinkId=248929 //-------------------------------------------------------------------------------------- diff --git a/WICTextureLoader/WICTextureLoader9.h b/WICTextureLoader/WICTextureLoader9.h index 97dc014b..4a9024ba 100644 --- a/WICTextureLoader/WICTextureLoader9.h +++ b/WICTextureLoader/WICTextureLoader9.h @@ -14,7 +14,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //-------------------------------------------------------------------------------------- #pragma once From cbe540f3e02e86848d2b1aafd64fb87bcb1df562 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Tue, 31 Mar 2026 15:20:19 -0700 Subject: [PATCH 2/4] Update copilot instructions --- .github/copilot-instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 9efbee23..3c7aaebd 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -163,7 +163,7 @@ Every source file (`.cpp`, `.h`, `.hlsl`, etc.) must begin with this block: // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // -// http://go.microsoft.com/fwlink/?LinkId=248926 +// https://go.microsoft.com/fwlink/?LinkId=248926 //------------------------------------------------------------------------------------- ``` From e63828ff97b8b06d5385e61c7dcf9d5db231e208 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 1 Apr 2026 10:42:29 -0700 Subject: [PATCH 3/4] Fixed code warning --- Auxiliary/DirectXTexEXR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auxiliary/DirectXTexEXR.cpp b/Auxiliary/DirectXTexEXR.cpp index ffbcf9a1..ac435661 100644 --- a/Auxiliary/DirectXTexEXR.cpp +++ b/Auxiliary/DirectXTexEXR.cpp @@ -93,7 +93,7 @@ namespace void seekg(uint64_t pos) override { - if (pos > m_DataSize) + if (pos > static_cast(m_DataSize)) { throw std::out_of_range("Seek position is out of range"); } From 1998c90639f2c975484b21fa459589148b5a163c Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 1 Apr 2026 17:22:29 -0700 Subject: [PATCH 4/4] Fix another codeql --- Auxiliary/DirectXTexEXR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Auxiliary/DirectXTexEXR.cpp b/Auxiliary/DirectXTexEXR.cpp index ac435661..355a4287 100644 --- a/Auxiliary/DirectXTexEXR.cpp +++ b/Auxiliary/DirectXTexEXR.cpp @@ -98,7 +98,7 @@ namespace throw std::out_of_range("Seek position is out of range"); } - m_Position = pos; + m_Position = static_cast(pos); } #if COMBINED_OPENEXR_VERSION > 30300