Search Issue Tracker
Fixed in 0.1.0-preview.7
Votes
0
Found in [Package]
0.1.0-preview.1
Issue ID
1146246
Regression
No
[MemoryProfiler] AddupRawRefCount loop variable overflows when capturing large memory snapshots (> 2^31 entries)
Reproduction steps:
1. Inspect the source code for the "Memory Profiler" package
2. Open the source file "ManagedDataCrawler.cs"
3. Observe the loop inside the AddupRawRefCount method
Expected result: the loop variable "i" is of type uint to match the count it is iterating over
Actual result: the loop variable "i" is of type int while snapshot.connections.Count is a uint resulting in an overflow of "i" when snapshot.connections.Count > 2^31
Reproducible with package: 0.1.0-preview.6
Reproducible with: 2018.3.0a9, 2018.3.13f1, 2019.1.0f2, 2019.2.0a12
Could not test with: 2017.4.26f1 (no package manager), 2018.3.0a8 (unable to open the Memory Profiler Window)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment