bullet3/Extras/Serialize/BulletFileLoader
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
..
autogenerated bump up PyBullet and Bullet version to 3.05 (in sync for this release) 2020-09-24 10:11:37 -07:00
bChunk.cpp Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bChunk.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bCommon.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bDefines.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bDNA.cpp Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bDNA.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
bFile.cpp Fix stack overflow in parsing URDF files in Bullet 2021-03-02 11:55:19 +01:00
bFile.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
btBulletFile.cpp Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
btBulletFile.h Code-style consistency improvement: 2018-09-23 14:17:31 -07:00
CMakeLists.txt cmake fixes 2017-09-06 14:18:35 -07:00
premake4.lua fix premake build for linux, thanks to @consultit 2018-02-09 18:46:26 -08:00