You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The POI description supports HTML in GPX files. In order to add HTML to a GPX file, the HTML-entities need to be encoded so that they do not infer with the XML structure of the GPX format.
Usually OsmAnd is able to decode the HTML before rendering it. But if there is a large amount of content before some encoded entities, the decoding fails. The limit seems to be somewhere between 65k-70k characters.
This might not be restricted to only GPX files.
EDIT: I just realized that it might be related to a 16-bit integer problem as 2^16 = 65.536. I did some tests again and somewhere in that range I started to encounter this issue. But I was unable to verify exactly what part of the GPX waypoint needs to exceed that number to cause problems.
Description
The POI description supports HTML in GPX files. In order to add HTML to a GPX file, the HTML-entities need to be encoded so that they do not infer with the XML structure of the GPX format.
Usually OsmAnd is able to decode the HTML before rendering it. But if there is a large amount of content before some encoded entities, the decoding fails. The limit seems to be somewhere between 65k-70k characters.
This might not be restricted to only GPX files.
EDIT: I just realized that it might be related to a 16-bit integer problem as 2^16 = 65.536. I did some tests again and somewhere in that range I started to encounter this issue. But I was unable to verify exactly what part of the GPX waypoint needs to exceed that number to cause problems.
Steps to reproduce
Actual result
Expected result
Regardless of the length of the content that precedes an HTML-encoded string, the HTML should be decoded correctly.
Your Environment (required)
WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!
The text was updated successfully, but these errors were encountered: