瀏覽代碼

Added security checks #3924

pull/3927/head
Ray 1 年之前
父節點
當前提交
2754c80596
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/rtextures.c

+ 3
- 0
src/rtextures.c 查看文件

@ -457,6 +457,9 @@ Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileDat
{
Image image = { 0 };
int frameCount = 0;
// Security check for input data
if ((fileType == NULL) || (fileData == NULL) || (dataSize == 0)) return image;
#if defined(SUPPORT_FILEFORMAT_GIF)
if ((strcmp(fileType, ".gif") == 0) || (strcmp(fileType, ".GIF") == 0))

Loading…
取消
儲存