Luca Della Vedova
672594c230
Revert "Refactoring: use using types ( #6266 )" ( #6324 )
...
* Revert "Refactoring: use using types (#6266 )"
2025-11-04 15:10:45 +01:00
Dongge Liu
36b004e286
Fixed a heap-buffer-overflow in the Half-Life 1 MDL loader. ( #6321 )
...
The loader attempted to read the MDL header without verifying if the input buffer was large enough.
Added a check in MDLImporter::InternReadFile_HL1 to ensure the buffer size is sufficient before proceeding with loading.
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-08-18 09:29:45 +03:00
Kim Kulling
9f4e7c6d8d
Refactoring: use using types ( #6266 )
...
* Refactoring: use using types
---------
Co-authored-by: Kim Kulling <kim.kulling@draeger.com >
2025-07-28 17:00:45 +02:00
yuri@FreeBSD
cb56793e16
fix: Fix build on armv6/armv7 ( #6123 )
2025-04-27 21:27:45 +02:00
krishty
b57f7d367c
Harmonize Importer #includes ( #6065 )
...
* Harmonize Importer #includes
Some importers referred to their headers via `#include "AssetLib/[format]/[header.h"`, others via `#include "[header].h"`, others mixed both (e.g. IRR). This is a matter of taste, but it should at least be done the same way everywhere.
Most importers seem to prefer `#include "[header].h"`, so this commit enforces it.
Cross-referencing files from other importers is still done through `AssetLib/[format]`.
Assimp headers are not affected and I would advise against changing them, as this could lead to subtle collisions with user includes.
* went one too far
---------
Co-authored-by: Krishty <krishty@krishty.com >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-03-27 11:13:44 +01:00
krishty
88959b2be7
Fix Whitespace ( #6063 )
...
* Fix Whitespace
No functional changes. This commit removes trailing spaces, undesired line breaks, and formatting screwups.
* Remove more useless line breaks in license (500 out of 630 license copies do NOT use double line breaks here)
---------
Co-authored-by: Krishty <krishty@krishty.com >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-03-26 00:12:55 +01:00
Kim Kulling
bcf11c252a
MDL: Fix overflow check ( #6047 )
2025-03-13 00:07:41 +01:00
Kim Kulling
7f2c9d7b88
MDL: Limit max texture sizes ( #6046 )
...
- closes https://github.com/assimp/assimp/issues/6022
2025-03-12 21:37:25 +01:00
Kim Kulling
45898eee55
Refactorings: glTF cleanups ( #6028 )
2025-03-05 21:37:47 +01:00
Kim Kulling
5d716b8fe0
Bugfix/fix mingw issue 5975 ( #6005 )
...
* MDL: Ensure alignment of bool vector
2025-02-20 21:20:11 +01:00
tyler92
d70606bfb6
Verify negative values in Quake1 MDL header ( #5940 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2025-01-01 01:55:05 +01:00
Kim Kulling
e63d3ed8e7
Make coord transfor for hs1 files optional ( #5687 )
...
* Make coord transfor for hs1 files optional
* Add config switch for HS1 transformation transformation
2024-07-31 18:39:39 +02:00
Stoyan Gaydarov
5d5e0bad3c
Fix a fuzz test heap buffer overflow in mdl material loader ( #5658 )
...
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2024-07-19 21:48:10 +02:00
Kim Kulling
35e4f1bf64
Kimkulling/fix double precision tests ( #5660 )
...
* Make color single precision
* Fix the unittests for double precision
* Fix merge issues
* Fix issues with Vertex + Color4
* Fix vertex operator, some tests are still red.
2024-07-12 14:37:49 +02:00
Kim Kulling
a51500ba2b
Draft: Update init of aiString ( #5623 )
...
* Draft: Update init of aiString
- closes https://github.com/assimp/assimp/issues/5622
* Update types.h
* Fix typo
* Fix another typo
* Adapt usage of AI_MAXLEN
* Fix compare operator
* Add missing renames
2024-06-17 13:12:54 +02:00
Kim Kulling
81858f9e62
Update MDLMaterialLoader.cpp ( #5620 )
...
* Update MDLMaterialLoader.cpp
- closes https://github.com/assimp/assimp/issues/5239
* Add missing declaration
2024-06-14 12:51:47 +02:00
RoboSchmied
52c2b6896a
Fix 16 typos ( #5518 )
...
Signed-off-by: RoboSchmied <github@roboschmie.de >
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com >
2024-04-06 21:26:32 +02:00
Kim Kulling
01231d0e60
Add 2024 to copyright infos ( #5475 )
2024-02-23 22:30:05 +01:00
Kim Kulling
5d5496f1ad
Update MDLMaterialLoader.cpp
2023-12-22 13:23:08 +01:00
Kim Kulling
69dae9599a
Fix integer overflow
...
- closes https://github.com/assimp/assimp/issues/4930
2023-12-22 13:23:08 +01:00
Kim Kulling
8cf2d6e588
Refactoring: Some cleanups
2023-11-12 21:09:33 +01:00
Alex
f7e7f82b9d
Add const
2023-08-03 17:10:17 +00:00
Alex
d7dc88e0d0
Fix UNKNOWN READ in Assimp::MDLImporter::InternReadFile_Quake1
2023-08-01 13:04:16 +00:00
Kim Kulling
1ec3dbd11a
Merge branch 'master' into 5093294573486080
2023-06-27 17:04:58 +02:00
Alex
c6c95b69f6
Use SizeCheck
2023-06-14 07:38:02 +02:00
Alex
54b0c00418
Fix UNKNOWN READ in Assimp::MDLImporter::ParseSkinLump_3DGS_MDL7
2023-06-14 07:38:02 +02:00
Alex
f897b0c461
Merge branch 'master' into 6520123362508800
2023-06-13 22:06:08 +02:00
Alex
f5683b6f3a
Update MDLMaterialLoader.cpp
...
Add parentheses
2023-06-05 14:27:21 +02:00
Alex
23f9990b22
Fix UNKNOWN READ in aiTexture::~aiTexture
2023-06-04 07:50:00 +00:00
Alex
f4d3b6e862
Fix Stack-buffer-overflow READ in aiMaterial::AddBinaryProperty
2023-06-03 16:28:55 +02:00
Jackie9527
87c309566f
Fix warning related to missing-noreturn.
...
Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com >
2023-04-01 18:46:12 +08:00
Marc-Antoine Lortie
eb3b48e523
Invert logic in build_bone_children_hierarchy.
2023-03-14 09:21:45 -04:00
Marc-Antoine Lortie
4c015077b8
Add missing member initializer.
2023-03-13 19:07:14 -04:00
Marc-Antoine Lortie
054dacd068
Improved comments.
2023-03-13 19:07:14 -04:00
Marc-Antoine Lortie
4b4cb55f22
Fix HL1MDLLoader flattened bone hierarchy.
2023-03-13 19:06:18 -04:00
Aaron Jacobs
53e5f19b14
Use C++ style casts
2023-02-17 11:20:00 -08:00
Aaron Jacobs
e4386d3013
Fix implicit conversion errors on macOS
2023-02-16 15:21:43 -08:00
Krishty
3d3e856925
Trim Trailing Whitespace
2023-01-16 09:12:35 +01:00
Kim Kulling
62486c6e7c
FIX: Fix possible division by zero
...
- closes https://github.com/assimp/assimp/issues/4819
2022-12-02 09:24:51 +01:00
Kim Kulling
8fb7ba3444
Merge branch 'master' into modernize-smartptrs-literals
2022-11-29 09:58:17 +01:00
Kim Kulling
5689ac7869
Add overfolow check for invalid data.
...
- closes https://github.com/assimp/assimp/issues/3422
2022-11-22 10:50:52 +01:00
Aaron Gokaslan
ccfb175460
Apply various clang-tidy checks for smartprs and modern C++ types
2022-11-08 11:03:55 -05:00
slinky55
38ccb7e6c9
Used sizeof for buffer sizes instead of hardcoding values
2022-09-30 22:03:59 -04:00
slinky55
e2e45f7a14
Fixed issue with clang complaining about sprintf being depreciated
2022-09-30 00:34:33 -04:00
Aaron Gokaslan
e93fa6699a
Manually fix up 100 more instances where it should be defaulted
2022-08-25 12:20:13 -04:00
Aaron Gokaslan
6fa21dcc6e
Explicitly default all empty dtors
2022-08-25 11:32:59 -04:00
Kim Kulling
5bce9e8ce5
Update MDLMaterialLoader.cpp
2022-07-05 20:09:16 +02:00
Kim Kulling
a6b1a35748
Try to fix issue 4238
...
- Fix possible nullptr dereferencing.
- closes https://github.com/assimp/assimp/issues/4238
2022-07-05 20:05:10 +02:00
Kim Kulling
c2b05acaa6
Fix stack-overflow in MDLLoader
...
- Use correct len to copy filename.
- Closes https://github.com/assimp/assimp/issues/4447
2022-03-16 13:59:21 +01:00
Kim Kulling
552f3a308d
Fix nullptr dereferencing
...
- Check if we have any texture coordinates before calculating them
- closes https://github.com/assimp/assimp/issues/4445
2022-03-16 10:08:20 +01:00