diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-16 20:41:50 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-16 22:30:58 +0100 |
commit | 6095612850973388ba5b121b34d02292a2548e7d (patch) | |
tree | 2a564f7a41b2e4b51c5b24eb662e40ab8f2dba1b /filter | |
parent | 92b10e5c0825a2fe176738a1b86e2b4db0a263cb (diff) |
ofz#20160 Integer-overflow
since...
commit cf82475c785c47327cdc9d591d63d7a82dd1ac53
Date: Sun Dec 8 19:46:45 2019 +0530
tdf#114441 Changing sal_uLong to appropriate integer type in filters module
Change-Id: I1f29e764c6405bb05dfd27da06bdc08cf8ae13cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86947
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/itga/itga.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/itga/itga.cxx b/filter/source/graphicfilter/itga/itga.cxx index 57c8a49bfc9b..ddf2db50f30d 100644 --- a/filter/source/graphicfilter/itga/itga.cxx +++ b/filter/source/graphicfilter/itga/itga.cxx @@ -715,7 +715,7 @@ bool TGAReader::ImplReadPalette() { case 0x3f : { - for ( sal_uInt16 i = 0; i < nColors; i++ ) + for (sal_uInt32 i = 0; i < nColors; ++i) { mpColorMap[ i ] = ( i << 16 ) + ( i << 8 ) + i; } |