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
{{ message }}
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.
The function VitaMTP_Data_Metadata_To_XML formats a float number to a string then it tries to replace the dot in the decimal by a comma. If the application who loads libmtp changes the locale to one where it uses a comma for decimal separator then the library crashes since it doesn't check that the result of strchr returns a valid pointer (there is no dot in the formatted number).
The function VitaMTP_Data_Metadata_To_XML formats a float number to a string then it tries to replace the dot in the decimal by a comma. If the application who loads libmtp changes the locale to one where it uses a comma for decimal separator then the library crashes since it doesn't check that the result of strchr returns a valid pointer (there is no dot in the formatted number).
Here is a testcase that reproduces the issue:
The fix is to make a check before trying to change the dot for a comma
The text was updated successfully, but these errors were encountered: