Commit aaecc404 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

user32: Don't go past the end of the animated cursor data.

parent a172aead
......@@ -1451,6 +1451,8 @@ static void riff_find_chunk( DWORD chunk_id, DWORD chunk_type, const riff_chunk_
}
ptr += sizeof(DWORD);
if (ptr >= end)
break;
ptr += (*(const DWORD *)ptr + 1) & ~1;
ptr += sizeof(DWORD);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment