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
This code handles a nil duration, but if it's 0, it will cause a math inconsistency (dividing by 0), which causes a crash on the app.
We would like this handling to be improved, and it might be a good idea to check the duration is not negative too, as it could cause some weird reporting.
For the time being, we will be making sure not to send 0 or negatives, but this is something that should be handled within the media SDK
The text was updated successfully, but these errors were encountered:
There are currently some other things ahead of this, but wanted to let you know this wasn't forgotten. I'll update this issue when a new release is out with the input sanitization improved.
While working on the mParticle implementation on Sky, we found out a crash can happen if we start the MPMediaSession object with a duration of 0. This is due to the code on line: https://github.com/mParticle/mparticle-apple-media-sdk/blob/master/mParticle-Apple-Media-SDK/MPMediaSDK.swift#L367
This code handles a nil duration, but if it's 0, it will cause a math inconsistency (dividing by 0), which causes a crash on the app.
We would like this handling to be improved, and it might be a good idea to check the duration is not negative too, as it could cause some weird reporting.
For the time being, we will be making sure not to send 0 or negatives, but this is something that should be handled within the media SDK
The text was updated successfully, but these errors were encountered: