vcl/opengl/win/WinDeviceInfo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d12dcbcb61b1818c7ea58650fc06bf4aa04057cf Author: Tor Lillqvist <t...@collabora.com> Date: Tue Jan 5 15:29:23 2016 +0200 Avoid indexing out of array bounds Change-Id: I65022f30e21cb94fc8c653ef8e2797da3746875c diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx index fe3297c..7443194 100644 --- a/vcl/opengl/win/WinDeviceInfo.cxx +++ b/vcl/opengl/win/WinDeviceInfo.cxx @@ -282,7 +282,7 @@ bool SplitDriverVersion(const char *aSource, char *aAStr, char *aBStr, char *aCS for (int i = 0; i < len; i++) { - if (destIdx > ArrayLength(dest)) + if (destIdx >= ArrayLength(dest)) { // Invalid format found. Ensure we don't access dest beyond bounds. return false; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits