vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <[email protected]> | Thu May 14 18:29:38 2020 +0300| [5ff0896edeae8e5e98690d6fe27ee49e35aec86b] | committer: Rémi Denis-Courmont
config: allow 64-bits value in config chains This matches the behaviour for command line arguments and for input item options. This also matches the bug that it might cause signed overflow if the code expects a 32-bits value. (cherry picked from commit 760531ec7f7055f33bea8c707b4b67b6688d16be) > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5ff0896edeae8e5e98690d6fe27ee49e35aec86b --- src/config/chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/chain.c b/src/config/chain.c index 2cfc58f640..0ac550cec0 100644 --- a/src/config/chain.c +++ b/src/config/chain.c @@ -400,8 +400,8 @@ void config_ChainParse( vlc_object_t *p_this, const char *psz_prefix, val.b_bool = b_yes; break; case VLC_VAR_INTEGER: - val.i_int = strtol( cfg->psz_value ? cfg->psz_value : "0", - NULL, 0 ); + val.i_int = strtoll( cfg->psz_value ? cfg->psz_value : "0", + NULL, 0 ); break; case VLC_VAR_FLOAT: val.f_float = us_atof( cfg->psz_value ? cfg->psz_value : "0" ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
