Skip to content
Snippets Groups Projects
Commit c625f2e6 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix buffer overflow in bitmap movetext()

parent d4da7257
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4227 passed
...@@ -1160,9 +1160,12 @@ int bitmap_movetext(int x, int y, int ex, int ey, int tox, int toy) ...@@ -1160,9 +1160,12 @@ int bitmap_movetext(int x, int y, int ex, int ey, int tox, int toy)
|| x>cio_textinfo.screenwidth || x>cio_textinfo.screenwidth
|| ex>cio_textinfo.screenwidth || ex>cio_textinfo.screenwidth
|| tox>cio_textinfo.screenwidth || tox>cio_textinfo.screenwidth
|| tox + width > cio_textinfo.screenwidth
|| y>cio_textinfo.screenheight || y>cio_textinfo.screenheight
|| ey>cio_textinfo.screenheight || ey>cio_textinfo.screenheight
|| toy>cio_textinfo.screenheight) { || toy>cio_textinfo.screenheight
|| toy + height > cio_textinfo.screenheight
) {
return(0); return(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment