Skip to content

Urlencoded User-Agent string force closes (crashes) Kodi (Windows x64) #323

@enerdude

Description

@enerdude

When I for example have a m3u file containing the following and opening it in kodi via the video main menu item:

#EXTINF:-1, Video item
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
http://example.com/stream/stream.ts

or same using a random custom user agent header

#EXTINF:-1, Video item
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
http://example.com/stream/stream.ts|User-Agent=otg/1.5.1 (AppleTv Apple TV 4; tvOS16.0; appletv.client) libcurl/7.58.0 OpenSSL/1.0.2o zlib/1.2.11 clib/1.8.56

...both plays fine.

HOWEVER using same as above but urlencoding the User-Agent will force close (crash) kodi:

#EXTINF:-1, Video item
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
http://example.com/stream/stream.ts|User-Agent=otg%2F1.5.1%20%28AppleTv%20Apple%20TV%204%3B%20tvOS16.0%3B%20appletv.client%29%20libcurl%2F7.58.0%20OpenSSL%2F1.0.2o%20zlib%2F1.2.11%20clib%2F1.8.56

I am using Kodi 22 Alpha 1 however this issue seems related to an older issue that is still open albeit in my case it is not a specific string in the user-agent causing the crash. So I assume it affects Kodi versions 20 and up?
The issue I am talking about is #229

Edit: the crash issue is only present on my Windows x64 system ; my Android armv7 works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions