bullet3/Extras/Serialize
vabr-g 390eeb111b
Fix stack overflow in parsing URDF files in Bullet
When reading response from the Bullet server after a "load URDF" command, the client code allocated and zeroed buffers for the data chunks with a "+1" to account for the terminating zero. This was when the buffer pointer was interpreted as a `char *`, so it meant "+ 1 byte".

When reading those buffers, however, the associated pointer was a `void *`, so reading `sizeof(void*)` (8 on my machine) bytes at a time. Therefore it was reading up to 7 bytes past the allocated (and zeroed) memory.

The change fixes that by changing the "+ 1" to "+ sizeof(void*)". At one place it also extends the zeroing to the final buffer position (missing "+ 1" in the original).
2021-03-02 11:55:19 +01:00
..
BlenderSerialize Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
BulletFileLoader Fix stack overflow in parsing URDF files in Bullet 2021-03-02 11:55:19 +01:00
BulletWorldImporter export btHeightfieldTerrainShape to PyBullet. Note that tinyrenderer doesn't support rendering it (it would be too slow on CPU) 2019-07-29 20:23:38 -07:00
BulletXmlWorldImporter Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
HeaderGenerator add yapf style and apply yapf to format all Python files 2019-04-27 07:31:15 -07:00
makesdna Update DNA_rigidbody.h 2021-02-08 07:52:54 -08:00
ReadBulletSample Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
CMakeLists.txt fix makesdna on Mac OSX 2018-02-14 15:41:10 -08:00