summaryrefslogtreecommitdiff
path: root/src/delta.c
Commit message (Collapse)AuthorAgeFilesLines
* Make our overflow check look more like gcc/clang'sEdward Thomson2015-02-131-12/+5
| | | | | | | | | Make our overflow checking look more like gcc and clang's, so that we can substitute it out with the compiler instrinsics on platforms that support it. This means dropping the ability to pass `NULL` as an out parameter. As a result, the macros also get updated to reflect this as well.
* overflow checking: don't make callers set oomEdward Thomson2015-02-121-1/+1
| | | | | | Have the ALLOC_OVERFLOW testing macros also simply set_oom in the case where a computation would overflow, so that callers don't need to.
* allocations: test for overflow of requested sizeEdward Thomson2015-02-121-6/+32
| | | | | Introduce some helper macros to test integer overflow from arithmetic and set error message appropriately.
* Fixed left shift size of int.Jared Wong2013-12-081-1/+1
| | | | | Simply switched the ordering of the checks in the for loop where this left shift was being made.
* Fixing unwrapped callocRussell Belfer2013-05-271-1/+1
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Revert changes from git/git diff-delta.c by dak@gnu.org, proski@gnu.orgPhilip Kelley2013-01-071-98/+28
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-9/+12
|
* Add diff-delta code from git.gitMichael Schubert2012-10-091-0/+491