[vlc-commits] [Git][videolan/vlc][master] 2 commits: preparser: fix leak on unknown command

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun May 17 03:19:24 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
30aa817d by Steve Lhomme at 2026-05-17T03:05:29+00:00
preparser: fix leak on unknown command

CID #1692713

- - - - -
a50b7325 by Steve Lhomme at 2026-05-17T03:05:29+00:00
demux: libmp4: fix leak on number token error

CID #1692733

- - - - -


2 changed files:

- bin/preparser/cmdline.c
- modules/demux/mp4/libmp4.c


Changes:

=====================================
bin/preparser/cmdline.c
=====================================
@@ -454,6 +454,7 @@ preparser_cmdline_Parse(int argc, char *const *argv,
                 }
             }
             fprintf( stderr, "For more information try --help\n");
+            free(opts);
             return -1;
         }
     }


=====================================
modules/demux/mp4/libmp4.c
=====================================
@@ -5706,7 +5706,10 @@ static bool get_token( const char **ppsz_path, char **ppsz_token, unsigned *pi_n
         char *endptr = NULL;
         *pi_number = strtoul( *ppsz_path, &endptr, 10 );
         if( endptr == *ppsz_path || *endptr != ']' )
+        {
+            free(*ppsz_token);
             return false;
+        }
         *ppsz_path = endptr + 1;
     }
     else



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/dafa85f6bdc808cb6dceec8ef03d5a24227f942e...a50b73257123b397cf6b6c6241dbc9eeb1cf946a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/dafa85f6bdc808cb6dceec8ef03d5a24227f942e...a50b73257123b397cf6b6c6241dbc9eeb1cf946a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list