libgit2/src
Russell Belfer 3865f7f661 Invalid ref name normalization leaked memory
When normalizing a reference name, if there is an error because
the name is invalid, then the memory allocated for storing the
name could be leaked if the caller was not careful and assumed
that the error return code meant that no allocation had occurred.

This fixes that by explicitly deallocating the reference name
buffer if there is an error in normalizing the name.
2012-12-27 23:23:12 -08:00
..
amiga Properly handle p_reads 2012-09-11 23:05:24 +02:00
hash Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
transports Cloning empty repos: only allow missing target for HEAD 2012-12-15 14:30:20 -08:00
unix Add POSIX compat lstat() variant for win32 2012-11-14 22:41:51 -08:00
win32 Fix MSVC compilation warnings 2012-12-17 17:16:32 +01:00
xdiff Merge branch 'new-error-handling' into development 2012-05-02 15:59:02 -07:00
attr_file.c Minor fixes for ignorecase support 2012-09-17 16:10:42 -04:00
attr_file.h Some diff refactorings to help code reuse 2012-11-09 13:52:07 -08:00
attr.c API updates for index.h 2012-11-27 13:18:28 -08:00
attr.h Support for core.ignorecase 2012-09-17 15:42:41 -04:00
blob.c blob: introduce git_blob_is_binary() 2012-12-17 17:20:31 +01:00
blob.h Add filter tests and fix some bugs 2012-03-02 15:09:40 -08:00
branch.c tracking: fix retrieval of the tracking ref of branch with empty merge and/or remote entry 2012-11-28 20:00:07 +01:00
bswap.h Update Copyright header 2012-02-13 17:11:09 +01:00
buf_text.c buf test: make sure we always set the bom variable 2012-11-30 15:17:05 +01:00
buf_text.h Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
buffer.c Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
buffer.h Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
cache.c orite C89 2012-12-09 02:40:16 -08:00
cache.h Update Copyright header 2012-02-13 17:11:09 +01:00
cc-compat.h compat: va_copy on Win32 systems 2012-05-04 13:52:38 -07:00
checkout.c Make spoolandsort a pushable iterator behavior 2012-12-27 22:25:52 -08:00
clone.c Move non-options back out of options struct 2012-12-14 13:46:45 -08:00
commit_list.c Fix error condition typo 2012-11-29 17:34:41 -08:00
commit_list.h Move merge functions to merge.c 2012-11-27 13:18:29 -08:00
commit.c Remove GIT_SIGNATURE_VERSION and friends 2012-12-03 12:41:50 -08:00
commit.h More external API cleanup 2012-11-27 13:18:27 -08:00
common.h versions: MSVC build fixes 2012-12-05 20:56:27 +01:00
compress.c util: add git__compress() 2012-10-09 21:28:31 +02:00
compress.h util: add git__compress() 2012-10-09 21:28:31 +02:00
config_cache.c Vade retro satana 2012-12-03 16:04:39 +01:00
config_file.c Deploy git_config_backend version 2012-11-30 13:12:14 -08:00
config_file.h Clean up config.h 2012-11-27 13:18:28 -08:00
config.c Deploy GITERR_CHECK_VERSION 2012-11-30 16:31:42 -08:00
config.h Clean up config.h 2012-11-27 13:18:28 -08:00
crlf.c Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
date.c Remove use of English expletives 2012-11-23 13:31:22 +00:00
delta-apply.c delta-apply: add git__delta_read_header 2012-12-01 14:50:45 +11:00
delta-apply.h delta-apply: add git__delta_read_header 2012-12-01 14:50:45 +11:00
delta.c Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
delta.h Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
diff_output.c Deploy GITERR_CHECK_VERSION 2012-11-30 16:31:42 -08:00
diff_output.h Update diff callback param order 2012-11-27 13:18:28 -08:00
diff_tform.c Deploy GITERR_CHECK_VERSION 2012-11-30 16:31:42 -08:00
diff.c Make spoolandsort a pushable iterator behavior 2012-12-27 22:25:52 -08:00
diff.h Clean up iterator APIs 2012-12-10 15:38:28 -08:00
errors.c revparse: Deploy EINVALIDSPEC usage 2012-12-01 08:34:31 +01:00
fetch.c create callback to handle packs from fetch, move the indexer to odb_pack 2012-11-05 16:00:29 -06:00
fetch.h Remove 'bytes' param from git_remote_download 2012-10-24 14:07:07 -07:00
fetchhead.c Fix -Wmaybe-uninitialized warning 2012-12-22 16:29:59 +01:00
fetchhead.h fetchhead reading/iterating 2012-12-19 16:57:30 -06:00
filebuf.c filebuf now has a git_hash_ctx instead of a ctx* 2012-11-13 14:57:35 -06:00
filebuf.h filebuf now has a git_hash_ctx instead of a ctx* 2012-11-13 14:57:35 -06:00
fileops.c Add POSIX compat lstat() variant for win32 2012-11-14 22:41:51 -08:00
fileops.h Rework checkout with new strategy options 2012-11-09 13:52:07 -08:00
filter.c Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
filter.h Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
fnmatch.c Import DOS fix for fnmatch 2012-10-15 12:54:46 -07:00
fnmatch.h Import DOS fix for fnmatch 2012-10-15 12:54:46 -07:00
global.c git__mwindow_mutex needs to be initialized even with pthreads 2012-12-09 02:22:50 -08:00
global.h unload dll / destroy hash ctxs at shutdown 2012-11-13 14:48:10 -06:00
graph.c graph: plug leak 2012-11-30 15:26:45 +01:00
hash.c Remove git_hash_ctx_new - callers now _ctx_init() 2012-11-13 10:23:05 -06:00
hash.h unload dll / destroy hash ctxs at shutdown 2012-11-13 14:48:10 -06:00
ignore.c Set up default internal ignores 2012-11-19 16:33:30 -08:00
ignore.h Support for core.ignorecase 2012-09-17 15:42:41 -04:00
index.c don't walk off the end of the index 2012-12-12 17:54:12 -06:00
index.h Fix up some missing consts in tree & index 2012-11-27 13:18:29 -08:00
indexer.c Fix MSVC compilation warnings 2012-12-17 17:16:32 +01:00
iterator.c Make spoolandsort a pushable iterator behavior 2012-12-27 22:25:52 -08:00
iterator.h Make spoolandsort a pushable iterator behavior 2012-12-27 22:25:52 -08:00
khash.h Isolate khash inlines from global namespace 2012-07-12 11:49:15 -07:00
map.h Basic mmap/munmap compatiblity 2012-06-10 18:08:15 +01:00
merge.c Fix function name and add real error check 2012-11-29 17:02:27 -08:00
merge.h Move merge functions to merge.c 2012-11-27 13:18:29 -08:00
message.c Fix warnings and merge issues on Win64 2012-08-23 09:20:17 -07:00
message.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
mwindow.c Always check the result of git_mutex_lock 2012-12-09 02:31:39 -08:00
mwindow.h Make the memory-window conrol structures global 2012-08-20 12:02:52 +02:00
netops.c netops: on SSL teardown only send shutdown alert 2012-12-17 19:46:27 +01:00
netops.h Move inet_pton to posix platform-compatibility layer 2012-11-07 16:15:09 -02:00
notes.c Clean up iterator APIs 2012-12-10 15:38:28 -08:00
notes.h Add git notes API 2012-02-15 20:32:14 +01:00
object.c object: refine git_object_peel() error report 2012-12-01 08:34:29 +01:00
object.h Reorg internal odb read header and object lookup 2012-09-10 12:24:05 -07:00
odb_loose.c odb: check if object exists before writing 2012-12-21 13:05:20 +11:00
odb_pack.c Merge pull request #1115 from ben/struct-versions 2012-12-05 11:47:19 -08:00
odb.c odb: check if object exists before writing 2012-12-21 13:05:20 +11:00
odb.h indexer: use the packfile streaming API 2012-11-30 15:55:23 +01:00
oid.c Remove use of English expletives 2012-11-23 13:31:22 +00:00
oidmap.h git_oid_cmp: inline memcmp by hand to optimize 2012-07-29 20:50:58 +02:00
pack-objects.c Always check the result of git_mutex_lock 2012-12-09 02:31:39 -08:00
pack-objects.h Push! By schu, phkelley, and congyiwu, et al 2012-11-28 11:42:37 -05:00
pack.c Merge pull request #1091 from carlosmn/stream-object 2012-12-07 09:40:21 -08:00
pack.h Merge pull request #1091 from carlosmn/stream-object 2012-12-07 09:40:21 -08:00
path.c path: Teach UNC paths to git_path_dirname_r() 2012-12-26 23:07:25 +01:00
path.h Fix iterator reset and add reset ranges 2012-12-10 15:38:41 -08:00
pathspec.c Consolidate text buffer functions 2012-11-28 09:58:48 -08:00
pathspec.h Move pathspec code in separate files 2012-11-09 13:52:07 -08:00
pool.c Fix bug with merging diffs with null options 2012-07-19 10:23:45 -07:00
pool.h Diff iterators 2012-09-05 15:17:24 -07:00
posix.c Move inet_pton to posix platform-compatibility layer 2012-11-07 16:15:09 -02:00
posix.h Always use internal fnmatch, not system 2012-10-15 12:54:46 -07:00
pqueue.c Fix warnings on 64-bit windows builds 2012-04-17 10:47:39 -07:00
pqueue.h Update Copyright header 2012-02-13 17:11:09 +01:00
push.c Push! By schu, phkelley, and congyiwu, et al 2012-11-28 11:42:37 -05:00
push.h Push! By schu, phkelley, and congyiwu, et al 2012-11-28 11:42:37 -05:00
reflog.c reflog: Actual error handling 2012-12-19 12:52:14 +01:00
reflog.h Push! By schu, phkelley, and congyiwu, et al 2012-11-28 11:42:37 -05:00
refs.c Invalid ref name normalization leaked memory 2012-12-27 23:23:12 -08:00
refs.h Merge pull request #1026 from nulltoken/repo/state 2012-10-30 12:03:22 -07:00
refspec.c create FETCH_HEAD specially instead of as a ref file 2012-11-11 11:56:33 -06:00
refspec.h create FETCH_HEAD specially instead of as a ref file 2012-11-11 11:56:33 -06:00
remote.c Define constant for default fetch spec 2012-12-13 08:47:29 -08:00
remote.h Add a payload param to git_cred_acquire_cb 2012-12-10 11:11:01 -08:00
repo_template.h Add git_repository_init_ext for power initters 2012-08-22 16:06:22 -07:00
repository.c Deploy GITERR_CHECK_VERSION 2012-11-30 16:31:42 -08:00
repository.h Merge branch 'diff-crlf-filters' into development 2012-09-11 23:38:16 +02:00
reset.c Deploy GIT_CHECKOUT_OPTS_INIT 2012-11-30 13:12:14 -08:00
revparse.c revparse: Deploy EINVALIDSPEC usage 2012-12-01 08:34:31 +01:00
revwalk.c Fix function name and add real error check 2012-11-29 17:02:27 -08:00
revwalk.h Fix function name and add real error check 2012-11-29 17:02:27 -08:00
sha1_lookup.c Convert indexer, notes, sha1_lookup, and signature 2012-03-19 17:49:46 -07:00
sha1_lookup.h Update Copyright header 2012-02-13 17:11:09 +01:00
signature.c Remove GIT_SIGNATURE_VERSION and friends 2012-12-03 12:41:50 -08:00
signature.h Deploy GITERR_CHECK_VERSION 2012-11-30 16:31:42 -08:00
stash.c Fix diff constructor name order confusion 2012-12-17 11:00:53 -08:00
status.c Fix diff constructor name order confusion 2012-12-17 11:00:53 -08:00
strmap.h Missed a couple of khash inline dependencies 2012-07-12 11:52:10 -07:00
submodule.c Fix diff constructor name order confusion 2012-12-17 11:00:53 -08:00
submodule.h Working implementation of git_submodule_status 2012-08-24 11:00:27 -07:00
tag.c Remove GIT_SIGNATURE_VERSION and friends 2012-12-03 12:41:50 -08:00
tag.h Export parse_tag_buffer as git_tag__parse_buffer. 2012-02-22 04:45:30 +00:00
thread-utils.c Update Copyright header 2012-02-13 17:11:09 +01:00
thread-utils.h Treat git_mutex_lock as successful when threads are disabled 2012-12-09 02:37:33 -08:00
transport.c Fix comment so it doesn't go over 100 chars 2012-12-13 18:08:45 -05:00
tree-cache.c tree cache: loosen negative entry count check 2012-12-12 19:23:05 +07:00
tree-cache.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.c Fix iterator reset and add reset ranges 2012-12-10 15:38:41 -08:00
tree.h Fix iterator reset and add reset ranges 2012-12-10 15:38:41 -08:00
tsort.c Fix warnings on 64-bit windows builds 2012-04-17 10:47:39 -07:00
util.c fetchhead reading/iterating 2012-12-19 16:57:30 -06:00
util.h fetchhead reading/iterating 2012-12-19 16:57:30 -06:00
vector.c Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
vector.h Fix up some missing consts in tree & index 2012-11-27 13:18:29 -08:00