[Tarantool-patches] [PATCH] core: fix static_alloc buffer overflow

Cyrill Gorcunov gorcunov at gmail.com
Tue Nov 3 17:08:58 MSK 2020


On Tue, Nov 03, 2020 at 04:59:42PM +0300, Sergey Ostanevich wrote:
> Hi!
> 
> I double checked the snprintf fails only if buf is set to NULL _and_ the
> len is set to a non-zero value. 
> 
> So I would follow Vlad's proposal on factoring out the code to make it
> clearer.
> 
> Sergos.

Looks ok to me.


More information about the Tarantool-patches mailing list