[multicat-devel] [Git][videolan/multicat][master] multilive: fix use of uninitialised memory
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Sat Dec 7 17:08:58 UTC 2024
Christophe Massiot pushed to branch master at VideoLAN / multicat
Commits:
50f8d810 by Arnaud de Turckheim at 2024-12-07T18:08:44+01:00
multilive: fix use of uninitialised memory
nl_read may start new peer that we need to add in the pollfd pool.
- - - - -
1 changed file:
- multilive.c
Changes:
=====================================
multilive.c
=====================================
@@ -1103,8 +1103,10 @@ int main( int i_argc, char **pp_argv )
current = &fds[0];
struct pollfd *pollfd = current++;
- if (pollfd->revents & POLLIN)
+ if (pollfd->revents & POLLIN) {
nl_read();
+ continue;
+ }
peer_foreach_input(&config.peers, peer) {
if (peer->fd < 0)
View it on GitLab: https://code.videolan.org/videolan/multicat/-/commit/50f8d810fcdc3ba7d45b5253f5e2df8fe07b03df
--
View it on GitLab: https://code.videolan.org/videolan/multicat/-/commit/50f8d810fcdc3ba7d45b5253f5e2df8fe07b03df
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the multicat-devel
mailing list