office-gobmx/tools
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
..
inc
qa ofz#65165 Stack-buffer-overflow READ 4 test case 2023-12-20 05:49:41 +01:00
source ofz#65165 Stack-buffer-overflow READ 4 test case 2023-12-20 05:49:41 +01:00
CppunitTest_tools_config.mk
CppunitTest_tools_test.mk
CustomTarget_reversemap.mk
Executable_bestreversemap.mk
IwyuFilter_tools.yaml
Library_tl.mk
Makefile
Module_tools.mk
README.md
StaticLibrary_ooopathutils.mk

Old Tools (Deprecated)

Predates sal - string functions, url manipulation, stream stuff, polygons, etc.

Exact history is lost before Sept. 18th, 2000, but old source code comments show that part of the tools library dates back until at least April 1991.

This directory will be removed in the near future (see tdf#39445 or tdf#63154).