[FFmpeg-devel] [PATCH] avformat/tls_schannel: Fix use of uninitialized variable

Paweł Wegner pawel.wegner95 at gmail.com
Fri Aug 17 12:44:00 EEST 2018


Yes, this works as well. I attached fixed patch.

On Fri, Aug 17, 2018 at 11:15 AM Carl Eugen Hoyos <ceffmpeg at gmail.com>
wrote:

> 2018-08-03 20:28 GMT+02:00, Paweł Wegner <pawel.wegner95 at gmail.com>:
>
> > One could copy the initialization to the top from the while loop:
> >   init_sec_buffer(&outbuf[0], SECBUFFER_TOKEN, NULL, 0);
> >   init_sec_buffer(&outbuf[1], SECBUFFER_ALERT, NULL, 0);
> >   init_sec_buffer(&outbuf[2], SECBUFFER_EMPTY, NULL, 0);
> >   init_sec_buffer_desc(&outbuf_desc, outbuf, 3);
>
> I was thinking about "SecBuffer outbuf = { 0 };
> Does that work?
>
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-tls_schannel-Fix-use-of-uninitialized-varia.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180817/e2c1ad4d/attachment.bin>


More information about the ffmpeg-devel mailing list