Commit e62d083
Enable BufferSecurityCheck for native DLLs to resolve BinSkim BA2007 (#3404)
* Enable BufferSecurityCheck for native DLLs to resolve BinSkim BA2007
This change enables the /GS (Buffer Security Check) compiler flag for three native libraries to resolve BinSkim error BA2007:
- libHarfBuzzSharp.dll: Added BufferSecurityCheck=true to all configurations in the vcxproj file, including creating the missing Debug|ARM64 ItemDefinitionGroup
- libEGL.dll and libGLESv2.dll: Added /GS flag to extra_cflags in the ANGLE GN build configuration
The /GS flag enables compile-time buffer overrun detection, which is an important security feature that helps prevent stack-based buffer overflow attacks.
* Merge duplicate Debug|Win32 ItemDefinitionGroup in libHarfBuzzSharp.vcxproj (#3405)
* Initial plan
* Merge duplicate Debug|Win32 sections in libHarfBuzzSharp.vcxproj
Co-authored-by: mattleibow <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: mattleibow <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
Co-authored-by: mattleibow <[email protected]>1 parent 5f0c7df commit e62d083
File tree
2 files changed
+7
-1
lines changed- native
- windows/libHarfBuzzSharp
- winui-angle
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
246 | 251 | | |
247 | 252 | | |
248 | 253 | | |
| 254 | + | |
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments