GNOME Bugzilla – Bug 671246
_get_compat_resource endless loop with > 255 protocol info entries
Last modified: 2019-02-22 05:57:53 UTC
There is a problem with the VLC 2.0 integration. When trying to start an URI on the VLC renderer, gupnp-av-cp is stuck in gupnp_didl_lite_object_get_compat_resource. Not sure if its our problem, gupnp-av's or VLC's but let's start here.
VLC produces an enormous protocol info string, might be that gupnp_didl_lite_object_get_compat_resource isn't exactly using a performing way to check that.
yeah. 615 protocol entries to be precise. And the counter used in is_resource_compatible is a 8bit uint, causing a nice endless loop.
Created attachment 210048 [details] [review] Don't loop endlessly on large protocol-info
Review of attachment 210048 [details] [review]: ACK!
Attachment 210048 [details] pushed as b168dac - Don't loop endlessly on large protocol-info