[vlc-commits] Fix error handling from module_list_get() (fixes #7500)

Rémi Denis-Courmont git at videolan.org
Fri Sep 28 17:12:47 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 28 18:05:53 2012 +0300| [74486e6b203aa118ec86bb56f7e45a32d420d541] | committer: Rémi Denis-Courmont

Fix error handling from module_list_get() (fixes #7500)

module_list_get() can return NULL, callers cannot assume that the table
is NULL-terminated (NULL is not NULL-terminated table).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74486e6b203aa118ec86bb56f7e45a32d420d541
---

 lib/audio.c                                        |    7 +-
 lib/core.c                                         |    7 +-
 .../gui/qt4/components/complete_preferences.cpp    |    7 +-
 modules/gui/qt4/components/preferences_widgets.cpp |   18 ++---
 .../gui/qt4/components/sout/profile_selector.cpp   |   13 ++--
 modules/gui/qt4/dialogs/plugins.cpp                |    8 ++-
 src/config/cmdline.c                               |   13 ++--
 src/config/core.c                                  |   17 ++---
 src/config/file.c                                  |    7 +-
 src/config/help.c                                  |   17 +++--
 src/modules/bank.c                                 |   19 ++---
 src/modules/modules.c                              |   74 +++++++++++---------
 12 files changed, 115 insertions(+), 92 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=74486e6b203aa118ec86bb56f7e45a32d420d541


More information about the vlc-commits mailing list