Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
tplay, plugins: path limits are not handled correctly #21
Currently, paths in uris are limited to OMX_MAX_STRINGNAME_SIZE characters.
p_uritype = (OMX_PARAM_CONTENTURITYPE *) tiz_mem_calloc (1, sizeof(OMX_PARAM_CONTENTURITYPE) + OMX_MAX_STRINGNAME_SIZE)))
This is clearly insufficient. The system limits like PATH_MAX, NAME_MAX, or pathconf should be used to calculate the limits when allocating memory for uris.