projects
/
platform
/
upstream
/
opencv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix CVEs for opencv 2.4
[platform/upstream/opencv.git]
/
modules
/
highgui
/
src
/
bitstrm.cpp
diff --git
a/modules/highgui/src/bitstrm.cpp
b/modules/highgui/src/bitstrm.cpp
index
dd8bec8
..
67792a2
100644
(file)
--- a/
modules/highgui/src/bitstrm.cpp
+++ b/
modules/highgui/src/bitstrm.cpp
@@
-208,6
+208,8
@@
int RLByteStream::getByte()
current = m_current;
}
+ CV_Assert(current < m_end);
+
val = *((uchar*)current);
m_current = current + 1;
return val;