vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Thu May 14 18:29:38 2020 +0300| [760531ec7f7055f33bea8c707b4b67b6688d16be] | 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. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=760531ec7f7055f33bea8c707b4b67b6688d16be --- 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 0debcaed63..608de1b3af 100644 --- a/src/config/chain.c +++ b/src/config/chain.c @@ -399,8 +399,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 vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits