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)

Package: Memory Profiler Package

-

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)

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.