[libbluray-devel] Fix memory corruption in TextST decoder
hpi1
git at videolan.org
Fri Dec 13 09:25:59 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Dec 13 10:25:29 2013 +0200| [f6618775797bdc369581eda972cd70b5e12705d5] | committer: hpi1
Fix memory corruption in TextST decoder
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f6618775797bdc369581eda972cd70b5e12705d5
---
src/libbluray/decoders/rle.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/decoders/rle.c b/src/libbluray/decoders/rle.c
index 2d90979..9ee7aff 100644
--- a/src/libbluray/decoders/rle.c
+++ b/src/libbluray/decoders/rle.c
@@ -124,10 +124,11 @@ BD_PG_RLE_ELEM *rle_crop_object(const BD_PG_RLE_ELEM *orig, int width,
static void _rle_grow(RLE_ENC *p)
{
- _rle_ensure_size(p);
-
p->free_elem--;
p->elem++;
+
+ _rle_ensure_size(p);
+
p->elem->len = 0;
}
More information about the libbluray-devel
mailing list