Ticket #264: MPLAYER-PATCH-ANOTHER

File MPLAYER-PATCH-ANOTHER, 373 bytes (added by mikulas@…, 14 years ago)

patch another reading beyond allocated memory

Line 
1--- loader/win32.c_     Mon Apr 11 23:36:58 2005
2+++ loader/win32.c      Mon Apr 11 23:37:09 2005
3@@ -4613,10 +4613,9 @@
4     BYTE peFlags;
5 } PALETTEENTRY;
6 
7-/* reversed the first 2 entries */
8 typedef struct tagLOGPALETTE {
9-    WORD         palNumEntries;
10     WORD         palVersion;
11+    WORD         palNumEntries;
12     PALETTEENTRY palPalEntry[1];
13 } LOGPALETTE;
14