Re: [libav-devel] [PATCH] avpacket: fix leak on realloc in av_packet_add_side_data()

2016-11-23 Thread Anton Khirnov
Quoting James Almer (2016-11-19 19:33:58) > If realloc fails, the pointer is overwritten and the previously allocated > buffer > is leaked, which goes against the expected functionality of keeping the packet > unchanged in case of error. > > Signed-off-by: James Almer > --- > Should be backporte

Re: [libav-devel] [PATCH] avpacket: fix leak on realloc in av_packet_add_side_data()

2016-11-19 Thread Vittorio Giovara
On Sat, Nov 19, 2016 at 1:33 PM, James Almer wrote: > If realloc fails, the pointer is overwritten and the previously allocated > buffer > is leaked, which goes against the expected functionality of keeping the packet > unchanged in case of error. > > Signed-off-by: James Almer > --- > Should be

[libav-devel] [PATCH] avpacket: fix leak on realloc in av_packet_add_side_data()

2016-11-19 Thread James Almer
If realloc fails, the pointer is overwritten and the previously allocated buffer is leaked, which goes against the expected functionality of keeping the packet unchanged in case of error. Signed-off-by: James Almer --- Should be backported to release/12. libavcodec/avpacket.c | 7 --- 1 fil