[libbluray-devel] Fixed accessing outside of array bounds

hpi1 git at videolan.org
Sat Jun 23 13:05:52 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Jun 23 14:02:44 2012 +0300| [302efd3087fa90cfe5bccd3bb71368b043a7125a] | committer: hpi1

Fixed accessing outside of array bounds

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=302efd3087fa90cfe5bccd3bb71368b043a7125a
---

 ChangeLog              |    1 +
 src/libbluray/bluray.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0080f3a..a477672 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+ - Fixed accessing outside of array bounds
  - Default to stream 0 when requested language not found
  - Install bd_info
  - Added extended AACS error codes
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 2e6ab69..54656d2 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -289,7 +289,7 @@ static void _update_stream_psr_by_lang(BD_REGISTERS *regs,
 
     /* update PSR */
 
-    BD_DEBUG(DBG_BLURAY, "Selected stream %d (language %s)\n", ii, streams[ii].lang);
+    BD_DEBUG(DBG_BLURAY, "Selected stream %d (language %s)\n", stream_idx, streams[stream_idx].lang);
 
     bd_psr_lock(regs);
 



More information about the libbluray-devel mailing list