libgit2/tests/core
Patrick Steinhardt 95fa38802f pqueue: resolve possible NULL pointer dereference
The `git_pqueue` struct allows being fixed in its total number of
entries. In this case, we simply throw away items that are
inserted into the priority queue by examining wether the new item
to be inserted has a higher priority than the previous smallest
one.

This feature somewhat contradicts our pqueue implementation in
that it is allowed to not have a comparison function. In fact, we
also fail to check if the comparison function is actually set in
the case where we add a new item into a fully filled fixed-size
pqueue.

As we cannot determine which item is the smallest item in absence
of a comparison function, we fix the `NULL` pointer dereference
by simply dropping all new items which are about to be inserted
into a full fixed-size pqueue.
2016-10-28 16:19:24 +02:00
..
array.c Plug a few leaks 2016-03-31 10:41:33 -04:00
bitvec.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
buffer.c patch parsing: squash some memory leaks 2016-05-26 13:01:07 -05:00
copy.c git_futils_mkdir_*: make a relative-to-base mkdir 2015-09-17 10:00:35 -04:00
dirent.c diriter: test we can iterate root 2015-09-13 13:52:23 -04:00
encoding.c varint: Add varint encoding/decoding 2016-08-10 14:19:06 -04:00
env.c git__getenv: utf-8 aware env reader 2015-07-02 16:35:43 +00:00
errors.c errors: tighten up git_error_state OOMs a bit more 2015-08-03 19:44:51 -04:00
features.c remove conditions that prevent use of custom TLS stream 2016-07-06 13:06:25 -04:00
filebuf.c Fix some warnings 2015-11-20 20:48:51 +02:00
ftruncate.c git__getenv: utf-8 aware env reader 2015-07-02 16:35:43 +00:00
futils.c futils: ensure we can write a hidden file 2015-09-08 15:56:50 -04:00
hex.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
iconv.c Fixed Xcode 6.1 build warnings 2015-06-15 09:55:12 -07:00
init.c init: return the number of initializations 2014-12-04 20:42:27 -05:00
link.c win32: use NT-prefixed "\\?\" paths 2014-12-16 10:08:43 -06:00
mkdir.c Plug some leaks 2015-09-27 23:32:20 +02:00
oid.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
oidmap.c Remove extra semicolon outside of a function 2015-02-15 21:07:05 +01:00
opts.c git_libgit2_opts: validate key 2016-02-22 23:07:30 -05:00
path.c Introduce git_path_common_dirlen 2016-03-24 15:59:48 -04:00
pool.c Add a new build flag to disable the pool allocator and pass all git_pool_malloc calls straight to git__malloc 2016-01-12 16:08:38 -05:00
posix.c Fix the existence check for regcomp_l. 2016-10-07 12:47:04 -07:00
pqueue.c pqueue: resolve possible NULL pointer dereference 2016-10-28 16:19:24 +02:00
rmdir.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
sortedcache.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
stat.c git_futils_mkdir_*: make a relative-to-base mkdir 2015-09-17 10:00:35 -04:00
stream.c tests: fix core/stream test when built with openssl off 2016-04-06 15:00:32 +02:00
string.c git__tolower: test that some non-ASCII downcasing isn't 2015-05-29 18:16:51 -04:00
strmap.c Remove extra semicolon outside of a function 2015-02-15 21:07:05 +01:00
strtol.c Fixed bug while parsing INT64_MIN 2016-06-29 13:32:18 +05:30
structinit.c stash_apply: provide its own options structure 2015-05-11 14:12:39 -04:00
useragent.c Add get user agent functionality. 2016-07-05 18:10:24 +03:00
vector.c tests: vector: fix memory leak 2016-10-27 11:26:52 +02:00
zstream.c zstream: fail when asked to inflate garbage 2016-05-26 13:01:04 -05:00