Search Issue Tracker

Won't Fix

Votes

0

Found in

5.3.4p2

Issue ID

803618

Regression

No

Loading corrupted assetbundle crashes

--

-

Steps to reproduce:
1. open users attached project
2. play the scene
- crash

Expected: there should be a way to check whether assetbundle is valid without crashing or throw an exception

Update from Unity:
The crash here was due to the assetbundle file being corrupted during the download process. It is not possible to handle this situation gracefully when the file is loaded. Instead, it is recommended to use the crc argument from https://docs.unity3d.com/ScriptReference/AssetBundle.LoadFromFile.html in order to check the integrity of the file.

Comments (1)

  1. knah_

    Mar 16, 2020 12:21

    I would suggest reconsidering your "won't fix" resolution for this, as this represents a security issue for games that use assetbundles for user-generated content. No, CRC is not helpful when users intentionally upload corrupted bundles. And given that there isn't a way to distinguish a corrupted bundle from a normal one (aside from crashing), malicious users just get a free tool to crash others as they please.
    (the most prominent scenario for this is social VR games with user-provided avatars that are loaded by default)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.