mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 16:41:09 +00:00
Fix buffer overflow in FTexture::GenerateBgraMipmaps
This commit is contained in:
parent
2f512e54cd
commit
3c8719f945
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ void FTexture::GenerateBgraMipmaps()
|
||||||
if (a < 0) a = h - 1;
|
if (a < 0) a = h - 1;
|
||||||
if (a == h) a = 0;
|
if (a == h) a = 0;
|
||||||
if (b < 0) b = w - 1;
|
if (b < 0) b = w - 1;
|
||||||
if (b == h) b = 0;
|
if (b == w) b = 0;
|
||||||
c = c + dest[a + b * h];
|
c = c + dest[a + b * h];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue