vlc filter plugin integer parameter overflow
Posted: 11 May 2020 15:43
I'm trying to pass a 64 bit pointer to a data structure via plugin int parameter. From the plugin headers it looks that it deals with int64_t wich suggests that 64 bit pointer should not be a problem.
But when i'm passing a pointer value, what i get inside filter plugin is int32 max value (2,147,483,647).
Same experiment with 32 bit acts as expected. Pointer stays within 32 bit, value received in plugin is a valid pointer.
Is there some 32 bit limitation built in the plugin for int param?
p.s. the code resolving the parameter value
But when i'm passing a pointer value, what i get inside filter plugin is int32 max value (2,147,483,647).
Same experiment with 32 bit acts as expected. Pointer stays within 32 bit, value received in plugin is a valid pointer.
Is there some 32 bit limitation built in the plugin for int param?
p.s. the code resolving the parameter value
Code: Select all
struct filter_sys_t
{
atomic_llong i_shareddata
};
atomic_init(&p_sys->i_shareddata, var_CreateGetIntegerCommand(p_filter, CFG_PREFIX "shareddata"));