瀏覽代碼

[rmodels] Fix crash when NULL is passed to LoadImageFromCgltfImage (#4563)

pull/4565/head
Caleb Heydon 2 週之前
committed by GitHub
父節點
當前提交
f3f5f38c0f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/rmodels.c

+ 2
- 0
src/rmodels.c 查看文件

@ -5060,6 +5060,8 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
{
Image image = { 0 };
if (cgltfImage == NULL) return image;
if (cgltfImage->uri != NULL) // Check if image data is provided as an uri (base64 or path)
{
if ((strlen(cgltfImage->uri) > 5) &&

Loading…
取消
儲存