[libbluray-devel] Fix malloc of incorrect size in clpi parsing of EP fine table

John Stebbins git at videolan.org
Thu Apr 7 19:19:49 CEST 2011


libbluray | branch: master | John Stebbins <jstebbins at hermes.jetheaddev.com> | Thu Apr  7 10:19:16 2011 -0700| [5dd1a58fed2045ff3e1f6c8b6c766470fb658126] | committer: John Stebbins

Fix malloc of incorrect size in clpi parsing of EP fine table

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

 src/libbluray/bdnav/clpi_parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libbluray/bdnav/clpi_parse.c b/src/libbluray/bdnav/clpi_parse.c
index 68d5cdb..5cbc3da 100644
--- a/src/libbluray/bdnav/clpi_parse.c
+++ b/src/libbluray/bdnav/clpi_parse.c
@@ -273,7 +273,7 @@ _parse_ep_map_stream(BITSTREAM *bits, CLPI_EP_MAP_ENTRY *ee)
 
     bs_seek_byte(bits, ee->ep_map_stream_start_addr+fine_start);
 
-    fine = malloc(ee->num_ep_fine * sizeof(CLPI_EP_COARSE));
+    fine = malloc(ee->num_ep_fine * sizeof(CLPI_EP_FINE));
     ee->fine = fine;
     for (ii = 0; ii < ee->num_ep_fine; ii++) {
         fine[ii].is_angle_change_point = bs_read(bits, 1);



More information about the libbluray-devel mailing list