dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 503 forks source link

Make ResourceItemDescriptors index based #7880

Closed manup closed 3 months ago

manup commented 3 months ago

The underlying std::vector<> can invalidate pointers into it when it gets resized due dynamically added JSON items.

This has shown to cause SEGV.

By using indices instead of pointers we always get valid data.

SwoopX commented 3 months ago

Just for reference and documentation

grafik

grafik