]> git.sesse.net Git - vlc/commit
Fixed segmentation fault in input_SplitBuffer() when input_FillBuffer() could not...
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 13 Aug 2003 13:54:02 +0000 (13:54 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 13 Aug 2003 13:54:02 +0000 (13:54 +0000)
commit2f04d372428220da781e23fde0e092599e68b0cf
treeee9ea712fafe32f45bf66518757f219ea30b43a1
parent2e6a0471158e7943a1c141265199ac7841adbe4c
Fixed segmentation fault in input_SplitBuffer() when input_FillBuffer() could not allocate (actually input_NewBuffer()) another buffer. The code tested for:
if (!i_size)
{
  /* Handle error */
}

However input_SplitBuffer() returns -1, which results in if (false) here and a segmentation fault will happen when input_ShareBuffer() is called. All constructs of the above form are supicious to produce a segfault in the code!
src/input/input_ext-plugins.c