Ver a proveniência

[rmodels] Fixed null pointer dereference in LoadGLTF (#4564)

* [rmodels] Fixed null pointer dereference in LoadGLTF

* [rmodels] Add parenthesis around conditionals in LoadGLTF
pull/4574/head
Caleb Heydon há 2 semanas
committed by GitHub
ascendente
cometimento
5feccb1bab
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
src/rmodels.c Ver ficheiro

@ -5657,7 +5657,7 @@ static Model LoadGLTF(const char *fileName)
}
// Load primitive indices data (if provided)
if (mesh->primitives[p].indices != NULL)
if (p">(mesh->primitives[p].indices != NULL) && (mesh->primitives[p].indices->buffer_view != NULL))
{
cgltf_accessor *attribute = mesh->primitives[p].indices;

Carregando…
Cancelar
Guardar