[vlc-devel] bug in memory allocation of data_buffer_t
이길무
kmlee at ezex.co.kr
Wed Feb 25 10:23:16 CET 2004
I found code mistake in the vlc source code 0.6.2 (redhat linux version)
The following lines in "src/input/input_ext-plugins.c" should be changed.
line 184 :
//p_buf = malloc( sizeof(input_buffers_t) + i_size );
p_buf = malloc( sizeof(data_buffer_t) + i_size );
line 196:
//p_buf = malloc( sizeof(input_buffers_t) + i_size );
p_buf = malloc( sizeof(data_buffer_t) + i_size );
line 285:
//= (byte_t *)p_buf + sizeof(input_buffers_t);
= (byte_t *)p_buf + sizeof(data_buffer_t);
Can anybody tell me if above changes are correct ?
Kil-Moo Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20040225/313206a3/attachment.html>
More information about the vlc-devel
mailing list