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

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Aug 17 12:15:44 EEST 2018


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


More information about the ffmpeg-devel mailing list