diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-01-05 15:29:23 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-07 09:58:55 +0200 |
commit | b2aabba59ee41f51980fe801c7e8a50bb6fcbca2 (patch) | |
tree | 834860d116798cbd4b1a832fb4a0083ecad9a83e /vcl | |
parent | 342930aaa26ec1a66f432435c7b0f962007b44a8 (diff) |
Avoid indexing out of array bounds
Change-Id: I65022f30e21cb94fc8c653ef8e2797da3746875c
(cherry picked from commit d12dcbcb61b1818c7ea58650fc06bf4aa04057cf)
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/win/WinDeviceInfo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx index 99bc7a2b206b..e1d86a12ec37 100644 --- a/vcl/opengl/win/WinDeviceInfo.cxx +++ b/vcl/opengl/win/WinDeviceInfo.cxx @@ -292,7 +292,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; |