Copyright © 2026 Unity Technologies
Better protection against Android's attempts to read files past the end.
How to reproduce:
1. Open the “IN_76766” project
2. Press “Bundle/Bad Bundle”
3. In the Build Settings “Run Device” dropdown, select the desired device
4. Press Build And Run
5. Observe the Player
Expected result: Video loads and the player doesn’t crash
Actual result: Player crashes and the video doesn’t load
Reproducible with: 2021.3.38f1, 2022.3.29f1, 6000.0.3f1
Testing environment: Windows 10 Pro
Not reproducible on: No other environment tested
Reproducible on these devices:
VLNQA00267, Samsung Galaxy S10+ (SM-G975F), Android 12, CPU: Exynos 9 (9820), GPU: Mali-G76
VLNQA00321, Xiaomi MI 9 (MI 9), Android 10, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00363, Samsung Galaxy Z Fold2 5G (SM-F916B), Android 11, CPU: Snapdragon 865 SM8250, GPU: Adreno (TM) 650
VLNQA00375, Samsung SM-G996U (SM-G996U), Android 11, CPU: Snapdragon 888, GPU: Adreno (TM) 660
Not reproducible on these devices:
VLNQA00521, Samsung Galaxy S22 Ultra (SM-S908U), Android 14, CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno (TM) 730
VLNQA00357, iPhone 12 Mini (video hasn’t loaded but also the player didn’t crash)
Notes:
First lines of the Stack Trace:
#00 pc 0003609c /apex/com.android.runtime/lib/bionic/libc.so (__memcpy_a53+96) (BuildId: 2e80e910fc514a76df9bd52c968fed2e) #01 pc 0138d14f /data/app/~~y5PqC-hSAK_NVTaaCil41w==/com.DefaultCompany.wqe-vYAzHN_XvZFqpm6Bawxr8A==/lib/arm/libunity.so (AndroidVideoMedia<AndroidMediaNDK::Traits>::DataSourceReadAt(long long, void*, unsigned int)+910) (BuildId: f4a71fdf67b6c6e3e5cd2abc562768de06119ddd) #02 pc 0138cd1d /data/app/~~y5PqC-hSAK_NVTaaCil41w==/com.DefaultCompany.wqe-vYAzHN_XvZFqpm6Bawxr8A==/lib/arm/libunity.so (AndroidVideoMedia<AndroidMediaNDK::Traits>::DataSourceReadAt(void*, long long, void*, unsigned int)+32) (BuildId: f4a71fdf67b6c6e3e5cd2abc562768de06119ddd) #03 pc 0000ff7d /system/lib/libmediandk.so (NdkDataSource::readAt(long long, void*, unsigned int)+42) (BuildId: f89951cc931cefeb5dc2bc73a13ed6ea)
Issues you vote on will appear here