summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Drop conditionals for Boost earlier than 1.49Tim Landscheidt2019-01-177-64/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ledger requires Boost 1.49 or later and enforces this in CMakeLists.txt. This means BOOST_VERSION will always be 104900 or higher. Also, since Boost 1.46, BOOST_FILESYSTEM_VERSION is 3.
| * | | | Merge pull request #1742 from scfc/rephrase-boost-build-matrixJohn Wiegley2019-01-253-96/+29
| |\ \ \ \ | | | | | | | | | | | | Rephrase Boost build matrix
| | * | | | Use build matrix to specify Boost versions for Travis CITim Landscheidt2019-01-223-45/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Travis CI, versions of libraries, etc. to build against are typically specified in a build matrix. In addition, currently there is no way to build against the distribution-provided Boost version. This change uses a build matrix for BOOST_VERSION and allows that variable to be empty for building against the distribution-provided Boost version.
| | * | | | Remove broken and disabled Travis CI configurationsTim Landscheidt2019-01-223-51/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Travis CI configurations for macOS, Clang on Linux and CheckTexinfo.py and CheckManpage.py are broken and disabled or ignored. They appear to be non-trivial to fix, so the current stub is probably more distracting than helpful while also making changes to the working Linux configuration more difficult.
| * | | | | Merge pull request #1743 from scfc/move-garbage-dat-to-test-using-itJohn Wiegley2019-01-253-32/+32
| |\ \ \ \ \ | | | | | | | | | | | | | | Move garbage-input.dat to test case using it
| | * | | | | Move garbage-input.dat to test case using itTim Landscheidt2019-01-223-32/+32
| | |/ / / /
| * | | | | Merge pull request #1744 from scfc/do-not-set-dependencies-for-target-checkJohn Wiegley2019-01-252-7/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | Do not set dependencies for target check
| | * | | | | Do not set dependencies for target checkTim Landscheidt2019-01-222-7/+0
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The set_target_properties() commands themselves do not cause the tests to run if the target check is made, and as the target check executes ctest, all tests will be run anyway.
| * | | | | Merge pull request #1745 from mbudde/ignore-null-deferred-postingsJohn Wiegley2019-01-253-3/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore null deferred postings
| | * | | | | Ignore null deferred postingsMichael Budde2019-01-233-3/+13
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All-null transactions (i.e. a transaction where all postings have a null amount) are discarded during parsing and the `xact` object is free'd. But if the transaction contains a deferred posting this results in a use-after-free vulnerability because a reference to the deferred posting is stored in the account object which is later read when deferred postings are applied after parsing is finished. Ignore null deferred postings to prevent this – they should not have any effect any way. Thanks to Cory Duplantis for reporting this issue and providing an initial analysis. Ref TALOS-2017-0304, CVE-2017-2808 Fixes #1723
| * | | | | Expose post_t::given_cost over pythonChristoph Dittmann2019-01-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes #1655 by making the post_t::given_cost variable accessible over python. This allows access to the given cost of a posting. For example, here it will be "-2 EUR": A -2 XXX {1 EUR} [2018-01-01] @@ 2 EUR If a per-unit cost is given, the given_cost variable will still contain the cost of the posting. For example, here it will be "-4 EUR": B -2 XXX {1 EUR} [2018-01-01] @ 2 EUR
| * | | | | Drop support for gcc 2 and earlierTim Landscheidt2019-01-2514-97/+65
| | | | | |
| * | | | | Remove workaround for isspace() on FreeBSD 4 and earlierTim Landscheidt2019-01-251-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD 4 was declared end-of-life in 2006 (https://lists.freebsd.org/pipermail/freebsd-security/2006-October/004111.html). Currently, only FreeBSD 11 and 12 are supported (https://www.freebsd.org/security/security.html#sup).
| * | | | | Add tzdata to build dependencies for UbuntuTim Landscheidt2019-01-253-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test suite uses the symbolic time zone name "America/Chicago". To resolve that, the tzdata package needs to be installed. This fixes #1739.
| * | | | | Quick nitpick styling change/enhancementGonzalo Rizzo2019-01-251-6/+6
| |/ / / /
| * | | | Use standard GCC in Travis CITim Landscheidt2019-01-191-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 4c4367fe6b7f184605c900735fc5b646f45311c1 added some logic to compile Ledger with GCC 4.8 as Travis CI's Ubuntu Precise environments only offered 4.6 at that time. Since then, the default image has changed to Ubuntu Trusty which provides GCC 4.8.
| * | | | Merge pull request #1735 from scfc/remove-code-related-to-boost-facetsJohn Wiegley2019-01-172-82/+2
| |\ \ \ \ | | |/ / / | |/| | | Remove unused development code related to USE_BOOST_FACETS
| | * | | Remove unused development code related to USE_BOOST_FACETSTim Landscheidt2019-01-172-82/+2
| |/ / / | | | | | | | | | | | | | | | | The code can be accessed by Git history and reused in a branch if necessary.
| * | | Merge pull request #1733 from pascalfleury/ubuntu_deps_updateJohn Wiegley2019-01-172-49/+44
| |\ \ \ | | | | | | | | | | Ubuntu deps update
| | * | | Update README info.Pascal Fleury2019-01-171-9/+1
| | | | |
| | * | | update deps.Pascal Fleury2019-01-171-39/+42
| | | | |
| | * | | Make acprep work with Python3.Pascal Fleury2019-01-171-1/+1
| | |/ /
| * | | Merge pull request #1734 from tko/boost-fmtJohn Wiegley2019-01-172-4/+4
| |\ \ \ | | |/ / | |/| | Fix some boost format strings
| | * | Fix some boost format stringsTommi Komulainen2019-01-172-4/+4
| |/ / | | | | | | | | | | | | | | | Fixes: Error: boost::bad_format_string: format-string is ill-formed
| * | Fix parsing issue involving effective datesMartin Michlmayr2019-01-153-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cory Duplantis reported that "A specially crafted journal file can cause [an] integer underflow resulting in code execution". Cory provided this test case: Expenses:Food:Groceries $ 37.50 ; ] [=2004/01/01] Note the ] that comes before [ after the ;. This issue was reported and described in great detail by Cory Duplantis of Cisco Talos. This issue is known as TALOS-2017-0303 and has been assigned CVE-2017-2807. Cory's description can be found at https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0303 Fixes #1722
| * | Merge pull request #1705 from scfc/move-have-editJohn Wiegley2019-01-142-13/+9
| |\ \ | | | | | | | | Use HAVE_EDIT only in main.cc
| | * \ Merge branch 'next' into move-have-editJohn Wiegley2019-01-1411-47/+56
| | |\ \ | | |/ / | |/| |
| * | | Merge pull request #1707 from scfc/remove-sys-stat-hJohn Wiegley2019-01-141-1/+0
| |\ \ \ | | | | | | | | | | Remove unnecessary include for sys/stat.h
| | * | | Remove unnecessary include for sys/stat.hTim Landscheidt2019-01-121-2/+1
| | | | |
| * | | | Merge pull request #1713 from scfc/remove-unicodeobject-hJohn Wiegley2019-01-141-1/+0
| |\ \ \ \ | | | | | | | | | | | | Remove unnecessary include for unicodeobject.h
| | * | | | Remove unnecessary include for unicodeobject.hTim Landscheidt2019-01-131-1/+0
| | |/ / /
| * | | | Merge pull request #1714 from scfc/remove-py-dump-relaxedJohn Wiegley2019-01-141-7/+1
| |\ \ \ \ | | | | | | | | | | | | Remove unused function py_dump_relaxed()
| | * | | | Remove unused function py_dump_relaxed()Tim Landscheidt2019-01-131-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only user of py_dump_relaxed() was removed in commit 0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405.
| * | | | | Merge pull request #540 from scfc/fix-warnings-for-implicit-fallthroughJohn Wiegley2019-01-143-3/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | Fix warnings for -Wimplicit-fallthrough
| | * | | | | Fix warnings for -Wimplicit-fallthroughTim Landscheidt2018-02-193-3/+3
| | | | | | |
| * | | | | | Merge pull request #1718 from scfc/fix-prepend-width-warningJohn Wiegley2019-01-141-3/+4
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix warning about uninitialized variable prepend_width
| | * | | | | | Fix warning about uninitialized variable prepend_widthTim Landscheidt2019-01-141-3/+4
| | | |/ / / / | | |/| | | |
| * | | | | | Merge pull request #1719 from scfc/prefer-system-utf8-hJohn Wiegley2019-01-141-1/+2
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Prefer system utf8cpp if available
| | * | | | | | Prefer system utf8cpp if availableTim Landscheidt2019-01-141-1/+2
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current logic always uses the bundled utf8cpp. This is contrary to the stated intent of commit 1d7dd3e082be8a046f21d4a2d51026ac3c1f7c14 if UTFCPP_PATH is not set explicitly.
| * | | | | | Merge pull request #1704 from scfc/remove-unused-macrosJohn Wiegley2019-01-143-10/+2
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | Remove unused macros HAVE_ACCESS and HAVE_REALPATH
| | * | | | | Remove unused macros HAVE_ACCESS and HAVE_REALPATHTim Landscheidt2019-01-123-10/+2
| | | |/ / / | | |/| | |
| * | | | | Update NEWS for 3.1.2Martin Michlmayr2019-01-121-9/+42
| | | | | |
| * | | | | Add release dates to doc/NEWSMartin Michlmayr2019-01-121-3/+3
| | | | | |
| * | | | | Remove build information for ledger 2.6Martin Michlmayr2019-01-121-10/+0
| |/ / / /
| | | * / Use HAVE_EDIT only in main.ccTim Landscheidt2019-01-122-14/+10
| | |/ / | |/| |
| * | | Add test case for issue #1703Martin Michlmayr2019-01-121-0/+11
| | | | | | | | | | | | | | | | | | | | Add a test case for issue #1703 which John Wiegley fixed in commit 56025cde ("Don't attempt to invert a value if it's already zero").
| * | | Don't attempt to invert a value if it's already zero (#1703)John Wiegley2019-01-111-1/+3
| | | |
| * | | Use "macOS" consistentlyMartin Michlmayr2019-01-095-11/+11
| | | | | | | | | | | | | | | | macOS seems to be the current name for Mac OS X.
| * | | Remove trailing whitespaceMartin Michlmayr2019-01-095-15/+15
| | | |
| * | | Update Debian releases in README.mdMartin Michlmayr2019-01-091-6/+3
| | | |