New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Nov 18 20:51:16 UTC 2016


Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1394416:  Memory - illegal accesses  (OVERRUN)
/sw/source/filter/ww8/ww8scan.cxx: 2516 in WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib &, SvStream *, SvStream *, long, long, ePLCFT, int)()


________________________________________________________________________________________________________
*** CID 1394416:  Memory - illegal accesses  (OVERRUN)
/sw/source/filter/ww8/ww8scan.cxx: 2516 in WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib &, SvStream *, SvStream *, long, long, ePLCFT, int)()
2510                                         if (nOffset >= 511) //Bad offset
2511                                             aEntry.mnLen=0;
2512                                         if (aEntry.mnLen)   //start is ok
2513                                         {
2514                                             if (nOffset + aEntry.mnLen > 512)   //Bad end, clip
2515                                                 aEntry.mnLen = 512 - nOffset;
>>>     CID 1394416:  Memory - illegal accesses  (OVERRUN)
>>>     Assigning: "aEntry.mpData" = "&this->maRawData[nOffset]". "aEntry.mpData" may now point between bytes 9 and 510 (inclusive) of "this->maRawData" (which consists of 512 bytes).
2516                                             aEntry.mpData = maRawData + nOffset;
2517                                         }
2518                                     }
2519                                     else
2520                                         aEntry.mnLen=0; //Too short
2521                                 }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpytlts44G4vkW14sN4uExlARNE7IoS2IR3o-2BhDH3u-2BLYWxY3vIjsx-2FL8znPcUk-2BsRKyJA2i9tTYDlUciDdBbGHSAYPwecEgrNd8CgdFL1YGm5Uw76tebXUdsH9spvWHujH7-2F4-2F3oKkjOyjPY-2BvZnwH892lpQ-2Fv3eBQJptrMioGkXg-3D

To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5N5X-2B1MAElavPQhH6nLwozJzqOkt2k8uOkYf2ZoppNa9QVe0T3fEZVQ7Kky1tOkLz_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpytlts44G4vkW14sN4uExlAcsAcx54klBBkP6LdHwbPT-2FfISUzLXCCjYUwHqT-2FaB5dgmFi-2BDMEoClYipjoVAi1qXvj2oo3L-2FvdLpSeJRmvVS-2BRwsq2PQ7F-2BOo8RFAwvcqwUqdGYwyy07lziN3oQnWuCtWBCw2uKEXrYYZhVR2nBgs-3D



More information about the LibreOffice mailing list