mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-11 19:36:47 +02:00
HistoHeapInit: correct positions allocation size
Change-Id: I1879fd48bee3aea6f0504926d7030b504dd9be07
This commit is contained in:
parent
45d9635fd3
commit
35ad48b848
@ -586,7 +586,7 @@ static int HistoHeapInit(HistoHeap* const histo_heap, const int max_index) {
|
|||||||
histo_heap->heap = WebPSafeMalloc(max_index * max_index,
|
histo_heap->heap = WebPSafeMalloc(max_index * max_index,
|
||||||
sizeof(*histo_heap->heap));
|
sizeof(*histo_heap->heap));
|
||||||
histo_heap->positions = WebPSafeMalloc(max_index * max_index,
|
histo_heap->positions = WebPSafeMalloc(max_index * max_index,
|
||||||
sizeof(*histo_heap->heap));
|
sizeof(*histo_heap->positions));
|
||||||
return histo_heap->heap != NULL && histo_heap->positions != NULL;
|
return histo_heap->heap != NULL && histo_heap->positions != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user