diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-18 11:32:58 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-07-18 11:32:58 +0000 |
commit | 9dc9f1a77ddc29524d9e0a91649f20a0e054896e (patch) | |
tree | 6d4aade4e437ba7a5a0acc5ed3c70baeac481160 /libass/ass.h | |
parent | b96296d6afadb73d8e79a8310770f99868eacd38 (diff) | |
download | mpv-9dc9f1a77ddc29524d9e0a91649f20a0e054896e.tar.bz2 mpv-9dc9f1a77ddc29524d9e0a91649f20a0e054896e.tar.xz |
Fix read after the end of allocated buffer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29423 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass.h')
-rw-r--r-- | libass/ass.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass.h b/libass/ass.h index e98b4264b7..12f16fef5d 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -34,6 +34,8 @@ typedef struct ass_image_s { int w, h; // bitmap width/height int stride; // bitmap stride unsigned char* bitmap; // 1bpp stride*h alpha buffer + // Actual bitmap size may be as low as + // stride * (h-1) + w uint32_t color; // RGBA int dst_x, dst_y; // bitmap placement inside the video frame |