Skip to content

ERROR: store_buffer: Condition ' !p_src ' is true when doing some operations. #33564

@qarmin

Description

@qarmin

Godot version:
3.2.beta.custom_build. 157246a
OS/device including version:
Ubuntu 19.10
Issue description:

Using null buffer pointer in fwrite function is Undefinied Behaviour

size_t fwrite(
   const void *buffer,
   size_t size,
   size_t count,
   FILE *stream
);

and this cause this error

ERROR: store_buffer: Condition ' !p_src ' is true.
   At: drivers/unix/file_access_unix.cpp:278.

It can be easily silenced but probably this is not the best solution

Steps to reproduce:

  1. Download "FirstPersonStarter" from Template in Project Manager

file->store_buffer(r.ptr(), chunk.size());

2.
Import GLTF File Katalog bez nazwy.zip

f->store_buffer(r.ptr(), len);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions