mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:40:59 +00:00
ntdll: Fix possible overflow computing middle in NTDLL_mergesort().
This commit is contained in:
parent
c8fb366eb0
commit
6a3ca3ca5d
|
@ -260,7 +260,7 @@ NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(co
|
|||
{
|
||||
if(right>left) {
|
||||
size_t i, j, k, m;
|
||||
m=(right+left)/2;
|
||||
m=left+(right-left)/2;
|
||||
NTDLL_mergesort( arr, barr, elemsize, compar, left, m);
|
||||
NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right);
|
||||
|
||||
|
|
Loading…
Reference in a new issue