office-gobmx/tools/qa/cppunit
Caolán McNamara b64f23b235 ofz#65165 Stack-buffer-overflow READ 4 test case
make VALGRIND=memcheck CppunitTest_tools_test

 Conditional jump or move depends on uninitialised value(s)
    at 0x13348ADA: BigInt::DivLong(BigInt const&, BigInt&, BigInt*) const (bigint.cxx:306)
    by 0x13349A0A: BigInt::operator/=(BigInt const&) (bigint.cxx:635)
    by 0x12A58F67: tools::BigIntTest::testLenB1() (test_bigint.cxx:103)
    by 0x12A5C6A8: void std::__invoke_impl<void, void (tools::BigIntTest::*&)(), tools::BigIntTest*&>(std::__invoke_memfun_deref, void (tools::BigIntTest::*&)(), tools::BigIntTest*&) (invoke.h:74)

if ( (static_cast<sal_uInt64>(aTmpB.nNum[nLenB1 - 1]) * nQ) >
                                         ^ nLenB1 is 0
    ((nTmp - static_cast<sal_uInt64>(aTmpB.nNum[nLenB1]) * nQ) << 32) + aTmpA.nNum[j - 2])

Since:

commit bcbc0857bf
Date:   Sun Dec 17 21:11:31 2023 +0300

    Simplify BigInt

Co-authored-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: Id8dbff23f7b4312ba666e1443c41b7869713bfbc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160953
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-20 05:49:41 +01:00
..
test_100mm2twips.cxx
test_bigint.cxx ofz#65165 Stack-buffer-overflow READ 4 test case 2023-12-20 05:49:41 +01:00
test_color.cxx
test_config.cxx
test_cpu_runtime_detection_AVX2.cxx
test_cpu_runtime_detection_AVX2_check.cxx
test_cpu_runtime_detection_SSE2.cxx
test_cpu_runtime_detection_SSE2_check.cxx
test_cpu_runtime_detection_SSSE3.cxx
test_cpu_runtime_detection_SSSE3_check.cxx
test_cpu_runtime_detection_x86_checks.hxx
test_cpuid.cxx
test_date.cxx
test_duration.cxx
test_fract.cxx
test_fround.cxx
test_GenericTypeSerializer.cxx
test_guid.cxx
test_inetmime.cxx
test_json_writer.cxx
test_pathutils.cxx
test_poly.cxx
test_rectangle.cxx
test_reversemap.cxx
test_stream.cxx
test_time.cxx
test_urlobj.cxx
test_Wildcard.cxx
test_xmlwalker.cxx
test_xmlwriter.cxx
test_zcodec.cxx