sfx2/qa/cppunit/test_misc.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit ed480e918b6c1d3566ebfdfae6687bc4a4a06c10 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Sep 21 09:12:24 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Sep 21 11:28:21 2018 +0200
coverity#1439338 silence Time of check time of use Change-Id: I69d17f9190c165ed787b68febd2cdb37c4e16b9e Reviewed-on: https://gerrit.libreoffice.org/60852 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx index 4f4920185e0d..c86eca8262a2 100644 --- a/sfx2/qa/cppunit/test_misc.cxx +++ b/sfx2/qa/cppunit/test_misc.cxx @@ -181,6 +181,7 @@ void MiscTest::testHardLinks() xStorable->store(); struct stat buf; + // coverity[toctou] - this is legitimate in the context of this text int nRet = stat(aOld.getStr(), &buf); CPPUNIT_ASSERT_EQUAL(0, nRet); // This failed: hard link count was 1, the hard link broke on store. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits