diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-01-05 15:29:23 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-01-05 16:18:25 +0200 |
commit | d12dcbcb61b1818c7ea58650fc06bf4aa04057cf (patch) | |
tree | 49385f04985dc8e0fe0049c3fced6bc1b2389a9e /vcl/opengl/win | |
parent | 5a217ada5e28e17f052ebec8e53dce05c2aa9cae (diff) |
Avoid indexing out of array bounds
Change-Id: I65022f30e21cb94fc8c653ef8e2797da3746875c
Diffstat (limited to 'vcl/opengl/win')
-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 fe3297c25cfa..744319447de5 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; |