forked from NVIDIA/Q2RTX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From f4b7b6786a8d5672a35ed59f4e66c77fe6f321aa Mon Sep 17 00:00:00 2001
From: Andrey Nazarov <[email protected]> Date: Mon, 20 Sep 2021 19:41:42 +0300 Subject: [PATCH 389/396] Don't crash with fatal error if model hunk is exhausted. Loading oversize MD2 or MD3 model can legitimately exhaust default 4 MiB hunk and crash with fatal error. Change Hunk_Alloc() to return NULL on allocation failure and add specific checks, so that oversize model simply fails to load with ENOMEM. Note that all other users of Hunk_Alloc() already reserve enough memory, thus no additional checks are needed.
- Loading branch information
Showing
7 changed files
with
71 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters