[vlc-commits] help: fix loop boundary (overflow/underflow)

Rémi Denis-Courmont git at videolan.org
Tue Apr 24 20:42:37 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 24 21:41:55 2018 +0300| [2f4bbee4b348daa376780df34a99775d01e2ee2d] | committer: Rémi Denis-Courmont

help: fix loop boundary (overflow/underflow)

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

 src/config/help.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/help.c b/src/config/help.c
index 372eccf055..e5a221093e 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -445,7 +445,7 @@ static void print_item(const module_t *m, const module_config_t *item,
                 ket = "}";
 
                 *typebuf = 0;
-                for (size_t i = 0; i < item->list_count; i++)
+                for (size_t i = 0; i < (size_t)i_count; i++)
                 {
                     if (i != 0)
                         strcat(typebuf, ", ");



More information about the vlc-commits mailing list