Skip to content

Commit 90642ca

Browse files
committed
Add fix for CVE-2025-2151
1 parent f11907c commit 90642ca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

assetimport/assetimport.patch

+12
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,15 @@ diff -Naur ASSETIMPORT/code/CMakeLists.txt ASSETIMPORT_BLD/code/CMakeLists.txt
268268
)
269269

270270
if (APPLE)
271+
diff -Naur assimp/include/assimp/ParsingUtils.h ASSETIMPORT_BLD/include/assimp/ParsingUtils.h
272+
--- assimp/include/assimp/ParsingUtils.h 2025-03-13 14:04:31.626017442 -0400
273+
+++ ASSETIMPORT_BLD/include/assimp/ParsingUtils.h 2025-03-13 14:05:20.877847011 -0400
274+
@@ -167,7 +167,7 @@
275+
}
276+
*_out = (char_t)'\0';
277+
278+
- while (IsLineEnd(*buffer) && '\0' != *buffer) {
279+
+ while (IsLineEnd(*buffer) && '\0' != *buffer && buffer != end) {
280+
++buffer;
281+
}
282+

0 commit comments

Comments
 (0)