wc-duck / datalibrary

Open Source Data Library for data serialization.
Other
42 stars 8 forks source link

Added test to detect fixed size buffers, and made them growable #140

Closed Tisten closed 1 year ago

Tisten commented 2 years ago

Stack buffers are a great way to optimize while the payload is small, but only asserting on the size is evil in Release and emitting "malformed data" isn't nice neither since the data is just big. So now these buffers grow when overflowing the chosen stack limits.