[libbluray-devel] Fix out of array access
npzacs
git at videolan.org
Sat Jun 23 21:50:46 CEST 2012
libbluray | branch: master | npzacs <npzacs at gmail.com> | Sat Jun 23 22:49:40 2012 +0300| [f9222fc30aea855be86e0390f450fc5cb356ed91] | committer: npzacs
Fix out of array access
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f9222fc30aea855be86e0390f450fc5cb356ed91
---
src/libbluray/decoders/graphics_controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index b47de78..cd8d0fb 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -711,7 +711,7 @@ static void _render_button(GRAPHICS_CONTROLLER *gc, BD_IG_BUTTON *button, BD_PG_
/* make sure we won't wipe other buttons */
unsigned ii, skip = 0;
for (ii = 0; &gc->bog_data[ii] != bog_data; ii++) {
- if (_areas_overlap(bog_data, &bog_data[ii]))
+ if (_areas_overlap(bog_data, &gc->bog_data[ii]))
skip = 1;
/* FIXME: clean non-overlapping area */
}
More information about the libbluray-devel
mailing list