This is dangerous since a malicious client could mess with the value causing the trusted virtualiser to do out of bounds access.
In addition, we are not planning right now to have runtime configurable/dynamic sizes of these shared structures and so having a field is not necessary.
The
size
field on the network queues is a runtime parameter that ends up in shared memory. https://github.com/au-ts/sDDF/blob/9ed838f2c1efcb7d8e107edde7ba8d9eb9c386cd/include/sddf/network/shared_ringbuffer.h#L26This is dangerous since a malicious client could mess with the value causing the trusted virtualiser to do out of bounds access.
In addition, we are not planning right now to have runtime configurable/dynamic sizes of these shared structures and so having a field is not necessary.