]> git.sesse.net Git - vlc/commit
When recv() returns -1 a bug is triggered inside RTPRead() and RTPChoose(). The retur...
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 23 Jul 2003 07:37:34 +0000 (07:37 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 23 Jul 2003 07:37:34 +0000 (07:37 +0000)
commit986af9f1b1eab16f26f10f5f865e32ae6c9d72e7
tree751e586965d5d3824fa76ebd26f58514dafef8eb
parent6754c25bbc82f4ab9c135f601d6405c6551f5ac9
When recv() returns -1 a bug is triggered inside RTPRead() and RTPChoose(). The return value of Read() is then -1. The test "if (!i_ret) return 0;" will be false and the function will continue resulting in segfault while copying from buffers that are in an undetermined state. The correct test is "if (i_ret<0) return 0;".
modules/access/udp.c