- 24 Jun, 2019 28 commits
-
-
Ensure that the server has not sent us overly-large sideband messages (ensure that they are no more than `INT_MAX` bytes), then cast to `int`.
Edward Thomson committed -
Edward Thomson committed
-
Our progress information messages are short (and bounded by their format string), cast the length to int for callers.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
We keep the treebuilder entrycount as a `size_t` - return that instead of downcasting to an `unsigned int`. Callers who were storing this value in an `unsigned int` will continue to downcast themselves, so there should be no behavior change for callers.
Edward Thomson committed -
The `git__utf8_charlen` now takes `size_t` as the buffer length, since it contains the full length of the buffer at the current position. It now returns `-1` in all cases where utf8 codepoints are invalid, since callers only care about a valid length of a sequence of codepoints, or if the current position is not valid utf8.
Edward Thomson committed -
Edward Thomson committed
-
Only read at most INT_MAX from the underlying stream, so that we can accurately return the number of bytes read. Since callers are not guaranteed to get as many bytes as requested (due to availability of input), this is safe and callers should call in a loop until EOF.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Explicitly truncate the file size to a `uint32_t`.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Edward Thomson committed
-
Don't calculate 4 GiB as that will produce a compiler warning on MSVC. Just hardcode it.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
errors: use lowercase
Patrick Steinhardt committed
-
- 23 Jun, 2019 3 commits
-
-
largefile tests: only write 2GB on 32-bit platforms
Edward Thomson committed -
Use lowercase for our error messages, per our custom.
Edward Thomson committed -
Don't try to feed 4 GB of data to APIs that only take a `size_t` on 32-bit platforms.
Edward Thomson committed
-
- 21 Jun, 2019 1 commit
-
-
Fix broken link in README
Patrick Steinhardt committed
-
- 20 Jun, 2019 2 commits
-
-
Eric Huss committed
-
net: remove unused `git_headlist_cb`
Patrick Steinhardt committed
-
- 17 Jun, 2019 2 commits
-
-
cmake: default NTLM client to off if no HTTPS support
Edward Thomson committed -
If building libgit2 with `-DUSE_HTTPS=NO`, then CMake will generate an error complaining that there's no usable HTTPS backend for NTLM. In fact, it doesn't make sense to support NTLM when we don't support HTTPS. So let's should just have NTLM default to OFF when HTTPS is disabled to make life easier and to fix our OSSFuzz builds failing.
Patrick Steinhardt committed
-
- 16 Jun, 2019 4 commits
-
-
Edward Thomson committed
-
attr: rename constants and macros for consistency
Edward Thomson committed -
Our enumeration values are not generally suffixed with `T`. Further, our enumeration names are generally more descriptive.
Edward Thomson committed -
Change API instances of `fromnoun` to `from_noun` (with an underscore)
Patrick Steinhardt committed
-