Re: [PATCH v3 5/5] telemetry: remove VLA in json string format function

2023-05-25 Thread David Marchand
On Wed, Apr 5, 2023 at 6:05 PM Bruce Richardson wrote: > > Since variable length arrays (VLAs) are potentially insecure and > unsupported by some compilers, rework the code to remove their use. As > with previous changes to remove VLAs in the telemetry code, this > function uses two methods to avo

Re: [PATCH v3 5/5] telemetry: remove VLA in json string format function

2023-04-07 Thread Tyler Retzlaff
On Wed, Apr 05, 2023 at 05:03:26PM +0100, Bruce Richardson wrote: > Since variable length arrays (VLAs) are potentially insecure and > unsupported by some compilers, rework the code to remove their use. As > with previous changes to remove VLAs in the telemetry code, this > function uses two method

[PATCH v3 5/5] telemetry: remove VLA in json string format function

2023-04-05 Thread Bruce Richardson
Since variable length arrays (VLAs) are potentially insecure and unsupported by some compilers, rework the code to remove their use. As with previous changes to remove VLAs in the telemetry code, this function uses two methods to avoid modifying the buffer when adding to it fails: * if there are on