[vlc-commits] [Git][videolan/vlc][master] modules: fix calloc() arguments

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Mon Feb 19 19:35:18 UTC 2024



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
509c0e81 by Rémi Denis-Courmont at 2024-02-19T18:47:50+00:00
modules: fix calloc() arguments

- - - - -


1 changed file:

- src/modules/cache.c


Changes:

=====================================
src/modules/cache.c
=====================================
@@ -258,7 +258,7 @@ static int vlc_cache_load_plugin_config(vlc_plugin_t *plugin, block_t *file)
     /* Allocate memory */
     if (lines)
     {
-        plugin->conf.params = calloc(sizeof (struct vlc_param), lines);
+        plugin->conf.params = calloc(lines, sizeof (struct vlc_param));
         if (unlikely(plugin->conf.params == NULL))
         {
             plugin->conf.size = 0;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/509c0e816d99d05d9efc72e6d4302aa2100ad7f7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/509c0e816d99d05d9efc72e6d4302aa2100ad7f7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list