Myles Watson wrote:
It is completely unclear to me why it is safe to write beyond the struct lb_record
lb_record is just the header. The data follows it, but isn't a member of the struct.
Right, but what checks that the data is not colliding with something else.
(maybe it is an elaborate side-effect of the call to lb_new_record()?)
I think lb_new_record uses the size to find the next header location. Is that what you meant?
If it gets that far. That would be evaluated for the next record. What determines how big a new record can be?
//Peter