libgit2/include/git2/sys
Patrick Steinhardt 0f1e2d2066 index: fix contradicting comparison
The overflow check in `read_reuc` tries to verify if the
`git__strtol32` parses an integer bigger than UINT_MAX. The `tmp`
variable is casted to an unsigned int for this and then checked
for being greater than UINT_MAX, which obviously can never be
true.

Fix this by instead fixing the `mode` field's size in `struct
git_index_reuc_entry` to `uint32_t`. We can now parse the int
with `git__strtol64`, which can never return a value bigger than
`UINT32_MAX`, and additionally checking if the returned value is
smaller than zero.

We do not need to handle overflows explicitly here, as
`git__strtol64` returns an error when the returned value would
overflow.
2016-02-23 12:07:14 +01:00
..
commit.h Add git_commit_amend API 2014-02-07 16:17:59 -08:00
config.h config: implement basic transactional support 2015-08-12 04:09:09 +02:00
diff.h Fix remaining documentation warnings 2015-07-27 18:32:55 -06:00
filter.h filter: clean up documentation around custom filters 2016-02-09 21:47:51 -08:00
hashsig.h Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files 2015-01-14 10:17:56 -06:00
index.h index: fix contradicting comparison 2016-02-23 12:07:14 +01:00
mempack.h Spelling fixes 2014-12-04 21:06:59 -06:00
odb_backend.h refdb and odb backends must provide free function 2015-10-01 00:50:37 +02:00
openssl.h Include git2/common.h in sys/openssl.h. 2015-01-02 15:56:03 -08:00
refdb_backend.h refdb and odb backends must provide free function 2015-10-01 00:50:37 +02:00
reflog.h reflog: move the reflog implementation into refdb_fs 2013-10-02 06:53:24 +02:00
refs.h Fix public header on sys/refs.h 2014-12-19 15:31:49 +01:00
repository.h Merge pull request #2839 from swisspol/typo 2015-01-26 11:25:16 -06:00
stream.h stream: allow registering a user-provided TLS constructor 2015-11-03 08:10:29 -08:00
transport.h Fix build for custom transport users 2015-10-30 14:17:11 -04:00