rocr: unitialized size variable caused huge memory/space allocation (#1232)
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
765d9026c7
υποβολή
dde482d224
1 file changed
+1
-1
@@ -134,7 +134,7 @@ template <typename Allocator> class SimpleHeap {
|
||||
// Find best fit.
|
||||
auto free_fragment = free_list_.lower_bound(bytes);
|
||||
uintptr_t base;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
|
||||
if (free_fragment != free_list_.end()) {
|
||||
base = free_fragment->second;
|
||||
|
||||
Reference in new issue
Block a user