cid#1606594 Overflowed constant
Change-Id: Ie5445a5287de7d1752dd3aefaa2969d92fed6da1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174741 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
parent
12407f0668
commit
30d2c8bbde
1 changed files with 6 additions and 0 deletions
|
@ -480,6 +480,12 @@ void ImportExcel::Columndefault()
|
|||
OSL_ENSURE( aIn.GetRecLeft() == static_cast<std::size_t>(nColMac - nColMic) * 3 + 2,
|
||||
"ImportExcel::Columndefault - wrong record size" );
|
||||
|
||||
if (nColMac == 0)
|
||||
{
|
||||
SAL_WARN("sc", "dodgy column defaults");
|
||||
return;
|
||||
}
|
||||
|
||||
nColMac--;
|
||||
|
||||
if( nColMac > rD.MaxCol() )
|
||||
|
|
Loading…
Reference in a new issue