libgit2/src
Edward Thomson f1453c59b2 Make our overflow check look more like gcc/clang's
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.
2015-02-13 09:27:33 -05:00
..
hash hash_generic: __extension__ keyword for pedantry 2015-02-04 15:26:09 -05:00
transports Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
unix Fix segmentation fault observed on OpenBSD/sparc64 2014-11-03 13:49:04 +01:00
win32 Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
xdiff Spelling fixes 2014-12-04 21:06:59 -06:00
annotated_commit.c s/git_merge_head/git_annotated_commit 2014-10-26 22:59:48 -04:00
annotated_commit.h s/git_merge_head/git_annotated_commit 2014-10-26 22:59:48 -04:00
array.h Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
attr_file.c attr_session: keep a temp buffer 2015-02-04 14:15:13 +00:00
attr_file.h attr_session: keep a temp buffer 2015-02-04 14:15:13 +00:00
attr.c remove some unused warnings 2015-02-04 14:15:13 +00:00
attr.h Attribute file cache refactor 2014-04-17 14:56:41 -07:00
attrcache.c attr_session: keep a temp buffer 2015-02-04 14:15:13 +00:00
attrcache.h attrcache: don't re-read attrs during checkout 2015-02-03 00:31:08 -05:00
bitvec.h Address PR comments 2014-02-20 14:27:10 -08:00
blame_git.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
blame_git.h Blame: minor cleanup 2013-09-25 14:40:19 -07:00
blame.c allocations: test for overflow of requested size 2015-02-12 22:54:46 -05:00
blame.h Improve GIT_EUSER handling 2013-12-11 10:57:49 -08:00
blob.c Increase binary detection len to 8k 2014-05-16 11:08:19 -07:00
blob.h Fix rename detection to use actual blob size 2013-07-25 12:27:39 -07:00
branch.c branch: consider an empty upstream remote config as not found 2014-11-17 14:28:22 +01:00
branch.h branch: rename 'tracking' to 'upstream' 2013-03-30 15:45:57 +01:00
buf_text.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
buf_text.h Just put it all in buffer. 2014-07-16 13:34:25 -07:00
buffer.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
buffer.h git_buf_grow_by: increase buf asize incrementally 2015-02-12 22:54:47 -05:00
cache.c Refactor git_cache to use an rwlock 2014-08-26 15:12:43 -07:00
cache.h Refactor git_cache to use an rwlock 2014-08-26 15:12:43 -07:00
cc-compat.h There is no "z" size specifier on MSVC 2014-10-13 16:32:26 +02:00
checkout.c checkout: hold seen dir paths in a map 2015-02-04 14:15:13 +00:00
checkout.h iterator: submodules are determined by an index or tree 2014-11-07 08:33:27 +01:00
cherrypick.c git_cherry_pick -> git_cherrypick 2014-07-22 10:40:23 -04:00
clone.c remote: allow overriding the refspecs for download and fetch 2014-09-30 15:42:32 +02:00
clone.h clone: add flags to override whether to perform a local clone 2014-05-28 15:40:22 +02:00
commit_list.c Spelling fixes 2014-12-04 21:06:59 -06:00
commit_list.h Move un-namespaced constant to internal header 2014-10-10 15:17:05 -07:00
commit.c git_rebase_commit: write HEAD's reflog appropriately 2014-10-26 22:59:27 -04:00
commit.h Introduce git_revert to revert a single commit 2013-12-02 16:57:41 -06:00
common.h Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
config_cache.c Introduce core.protectHFS and core.protectNTFS 2014-12-17 12:52:07 -05:00
config_file.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
config_file.h Make submodule refresh a bit smarter 2014-04-01 09:48:37 -07:00
config.c config: add parsing and getter for paths 2015-01-14 19:36:50 +01:00
config.h Increase use of config snapshots 2014-05-13 16:32:27 -07:00
crlf.c Check for OOM 2014-12-30 12:33:40 +02:00
date.c Introduce git__date_rfc2822_fmt. Allows for RFC2822 date headers 2014-04-11 21:55:35 +02:00
delta-apply.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
delta-apply.h update copyrights 2013-01-08 17:31:27 -06:00
delta.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
delta.h Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
describe.c Plug some leaks 2014-12-29 18:18:49 +02:00
diff_driver.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
diff_driver.h Initial take on builtin drivers with multiline 2014-01-24 10:43:05 -08:00
diff_file.c Start adding GIT_DELTA_UNREADABLE and GIT_STATUS_WT_UNREADABLE. 2014-05-20 23:57:40 +10:00
diff_file.h Add buffer to buffer diff and patch APIs 2014-02-27 14:13:22 -08:00
diff_patch.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
diff_patch.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
diff_print.c Introduce git_buf_decode_base64 2014-08-15 11:12:42 -04:00
diff_stats.c Don't scale diff stat when not needed 2014-05-12 10:28:45 -07:00
diff_tform.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
diff_xdiff.c Remove converting user error to GIT_EUSER 2013-12-11 10:57:49 -08:00
diff_xdiff.h Reorganize diff and add basic diff driver 2013-06-10 10:10:39 -07:00
diff.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
diff.h Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
errors.c Allow NULL error message prefix when class=GITERR_OS 2014-08-13 14:55:24 -04:00
fetch.c Changed GIT_REMOTE_DOWNLOAD_TAGS_ALL to behave like git 1.9.0 2014-11-09 07:27:30 +09:00
fetch.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
fetchhead.c fetchhead: deal with quotes in branch names 2014-04-24 14:08:29 +02:00
fetchhead.h Join typedef and struct definitions in single file. 2014-09-24 11:00:51 +02:00
filebuf.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
filebuf.h Join typedef and struct definitions in single file. 2014-09-24 11:00:51 +02:00
fileops.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
fileops.h checkout: hold seen dir paths in a map 2015-02-04 14:15:13 +00:00
filter.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
filter.h attrcache: don't re-read attrs during checkout 2015-02-03 00:31:08 -05:00
fnmatch.c Restore attributions for fnmatch 2014-05-19 14:39:45 +01:00
fnmatch.h Restore attributions for fnmatch 2014-05-19 14:39:45 +01:00
global.c global: include sys/openssl.h for GIT_EXPORT of fn 2014-12-23 16:40:01 -06:00
global.h Factor 40 and 41 constants from source. 2014-09-16 13:07:04 +02:00
graph.c graph: fix ahead-behind logic 2014-08-28 13:36:58 +02:00
hash.c update copyrights 2013-01-08 17:31:27 -06:00
hash.h hash: use CommonCrypto on OSX for SHA-1 2014-10-24 13:31:18 +02:00
hashsig.c Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files 2015-01-14 10:17:56 -06:00
ident.c Check for OOM 2014-12-30 12:33:40 +02:00
ignore.c attrcache: don't re-read attrs during checkout 2015-02-03 00:31:08 -05:00
ignore.h Improve checks for ignore containment 2014-05-06 12:41:26 -07:00
index.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
index.h tree-cache: move to use a pool allocator 2014-10-10 19:35:18 +02:00
indexer.c win32: remember to cleanup our hash_ctx 2014-12-09 12:04:47 -05:00
integer.h Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
iterator.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
iterator.h iterator: submodules are determined by an index or tree 2014-11-07 08:33:27 +01:00
khash.h Update khash.h to pull request 42 2015-02-12 22:54:48 -05:00
map.h Fix compiler warning (git_off_t cast to size_t). 2014-05-19 17:37:29 -07:00
merge_file.c Cleanups 2014-03-31 13:31:01 -07:00
merge_file.h Introduce git_merge_file for consumers 2014-03-20 09:25:05 -07:00
merge.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
merge.h s/git_merge_head/git_annotated_commit 2014-10-26 22:59:48 -04:00
message.c message: don't assume the comment char 2014-05-18 10:06:49 +02:00
message.h update copyrights 2013-01-08 17:31:27 -06:00
mwindow.c mwindow: clean up pack map at shutdown 2014-10-26 22:27:56 -04:00
mwindow.h pack: clean up error returns 2014-06-25 21:35:58 +02:00
netops.c gitno: remove code which is no longer needed 2014-12-10 01:39:09 +01:00
netops.h gitno: remove code which is no longer needed 2014-12-10 01:39:09 +01:00
notes.c allocations: test for overflow of requested size 2015-02-12 22:54:46 -05:00
notes.h Introduce git_note_author, git_note_committer 2014-10-26 22:59:29 -04:00
object_api.c object: haha 2013-04-30 13:19:02 +02:00
object.c peel: reject bad queries with EINVALIDSPEC 2014-11-22 18:55:22 +01:00
object.h object: Explicitly define helper API methods for all obj types 2013-04-30 13:13:38 +02:00
odb_loose.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
odb_mempack.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
odb_pack.c Share packs across repository instances 2014-06-23 21:50:36 +02:00
odb.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
odb.h Create public filter object and use it 2013-09-17 09:30:06 -07:00
offmap.h Update khash.h to pull request 42 2015-02-12 22:54:48 -05:00
oid.c git__*allocarray: safer realloc and malloc 2015-02-12 22:54:47 -05:00
oid.h oid: Export git_oid_tostr_s instead of _allocfmt 2014-08-18 12:41:06 +02:00
oidarray.c merge: expose multiple merge bases 2014-07-27 17:17:22 +02:00
oidarray.h merge: expose multiple merge bases 2014-07-27 17:17:22 +02:00
oidmap.h Update khash.h to pull request 42 2015-02-12 22:54:48 -05:00
openssl_stream.c openssl: Add all required includes for AF_INET6 and in6_addr. 2015-01-24 16:19:43 +02:00
openssl_stream.h Add an OpenSSL IO stream 2014-12-10 01:17:41 +01:00
pack-objects.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
pack-objects.h Packbuilder contains its own zstream 2014-01-14 09:45:14 -08:00
pack.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
pack.h Share packs across repository instances 2014-06-23 21:50:36 +02:00
path.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
path.h git_path_join_unrooted: return base len 2015-01-20 17:12:35 -06:00
pathspec.c Merge pull request #2847 from jacquesg/coverity 2015-01-26 11:24:47 -06:00
pathspec.h Add git_pathspec_match_diff API 2013-07-10 20:50:33 +02:00
pool.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
pool.h Fix compiler warning (git_off_t cast to size_t). 2014-05-19 17:37:29 -07:00
posix.c p_read: ensure requested len is ssize_t 2015-02-12 22:54:47 -05:00
posix.h Merge commit 'refs/pull/2366/head' of github.com:libgit2/libgit2 2014-10-27 10:39:45 +01:00
pqueue.c Fix pqueue sort boundary condition bug 2014-03-12 11:21:55 -07:00
pqueue.h Convert pqueue to just be a git_vector 2014-02-04 10:01:37 -08:00
push.c push: fold unpack_ok() into finish() 2014-12-10 18:55:54 +01:00
push.h remote: remove git_push from the public API 2014-12-30 17:02:50 +00:00
rebase.c Check the result of git_buf_joinpath 2014-12-30 12:33:39 +02:00
refdb_fs.c Fix branch creation when branch name matches namespace of previously deleted branch 2015-02-03 10:33:04 -05:00
refdb_fs.h immutable references and a pluggable ref database 2013-03-07 11:01:52 -06:00
refdb.c Introduce reference transactions 2014-09-30 15:44:32 +02:00
refdb.h Introduce reference transactions 2014-09-30 15:44:32 +02:00
reflog.c reflog: constify byindex 2014-09-30 15:44:32 +02:00
reflog.h reflog: move the reflog implementation into refdb_fs 2013-10-02 06:53:24 +02:00
refs.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
refs.h git_rebase_commit: write HEAD's reflog appropriately 2014-10-26 22:59:27 -04:00
refspec.c push: use the common refspec parser 2014-11-09 16:07:43 +01:00
refspec.h refspec: git_refspec_parse() does not exist 2014-04-01 20:18:36 +02:00
remote.c allocations: test for overflow of requested size 2015-02-12 22:54:46 -05:00
remote.h Merge pull request #2761 from libgit2/cmn/fetch-prune 2014-12-30 11:53:55 -06:00
repo_template.h Make mode handling during init more like git 2013-02-27 13:44:15 -08:00
repository.c repository: parse init.templatedir as a path 2015-02-06 01:09:26 +01:00
repository.h attrcache: don't re-read attrs during checkout 2015-02-03 00:31:08 -05:00
reset.c git_reset: const the git_signature arg 2014-10-26 22:59:10 -04:00
revert.c git_checkout_index: checkout other indexes 2014-07-01 17:32:15 -04:00
revparse.c reflog: Error handling on empty reflog 2014-09-05 03:25:53 +02:00
revwalk.c allocations: test for overflow of requested size 2015-02-12 22:54:46 -05:00
revwalk.h revwalk: catch no-push and no-hide cases 2014-10-08 17:14:48 +02:00
settings.c Add support for setting the SSL CA location 2014-09-30 17:26:39 -07:00
sha1_lookup.c Backport @peff's fix for duplicates in sha1_lookup 2013-09-04 13:16:57 +02:00
sha1_lookup.h sha1_lookup: do not use the "experimental" lookup mode 2013-08-14 10:28:01 +02:00
signature.c Introduce git_rebase_commit 2014-10-26 22:59:19 -04:00
signature.h Introduce git_rebase_commit 2014-10-26 22:59:19 -04:00
socket_stream.c stream: constify the write buffer 2014-12-10 16:20:52 +01:00
socket_stream.h Add an OpenSSL IO stream 2014-12-10 01:17:41 +01:00
sortedcache.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
sortedcache.h Add stddef include for sortedcache 2013-08-28 11:20:47 -07:00
stash.c transaction: rename lock() to lock_ref() 2014-10-09 16:29:30 +02:00
status.c git_status_file now takes an exact path 2014-11-07 21:34:54 +02:00
status.h Rename diff objects and split patch.h 2013-10-11 14:51:54 -07:00
stream.h Fix a couple of compiler warnings 2014-12-10 16:22:50 +01:00
strmap.c config: get rid of a useless asignment 2013-08-12 11:40:57 +02:00
strmap.h Update khash.h to pull request 42 2015-02-12 22:54:48 -05:00
strnlen.h strnlen() is only available from Visual Studio 2005+ 2014-07-06 09:22:24 +02:00
submodule.c Add extern function to initialize submodule update options. 2015-01-07 09:04:49 -06:00
submodule.h Make submodule refresh a bit smarter 2014-04-01 09:48:37 -07:00
sysdir.c Fix the issues in git__on_shutdown 2014-05-06 12:16:24 -07:00
sysdir.h Move system directory cache out of utils 2014-02-24 17:52:38 -08:00
tag.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
tag.h Simplify object table parse functions 2013-04-22 16:52:06 +02:00
thread-utils.c update copyrights 2013-01-08 17:31:27 -06:00
thread-utils.h Clean up various compiler warnings 2014-10-26 22:13:40 -04:00
trace.c Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
trace.h Variadic macros is only available from Visual Studio 2005+ 2014-07-06 09:22:24 +02:00
transaction.c Clean up various compiler warnings 2014-10-26 22:13:40 -04:00
transport.c remote: delete git_remote_supported_url() 2014-10-24 13:40:42 +02:00
tree-cache.c tree-cache: correct the entry_count calculation 2014-10-22 21:25:08 +02:00
tree-cache.h index: write out the tree cache extension 2014-10-10 19:43:42 +02:00
tree.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
tree.h treebuilder: take a repository for path validation 2014-12-17 13:05:27 -05:00
tsort.c git__*allocarray: safer realloc and malloc 2015-02-12 22:54:47 -05:00
userdiff.h Update the javascript diff driver's function pattern. 2014-10-09 22:21:34 +02:00
util.c Credit utf8proc for utf8 iterator 2015-02-10 21:34:08 -05:00
util.h Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
vector.c Make our overflow check look more like gcc/clang's 2015-02-13 09:27:33 -05:00
vector.h Some vector utility tweaks 2014-04-17 14:43:45 -07:00
zstream.c git_buf_grow_by: increase buf asize incrementally 2015-02-12 22:54:47 -05:00
zstream.h Reorganize zstream API and fix wrap problems 2014-01-30 09:59:59 -08:00