Package: libgit2 / 0.27.7+dfsg.1-0.2

Metadata

Package Version Patches format
libgit2 0.27.7+dfsg.1-0.2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
use mbedtls.patch | (download)

CMakeLists.txt | 2 1 + 1 - 0 !
cmake/Modules/FindmbedTLS.cmake | 93 93 + 0 - 0 !
script/install-deps-linux.sh | 13 13 + 0 - 0 !
src/CMakeLists.txt | 64 61 + 3 - 0 !
src/features.h.in | 2 2 + 0 - 0 !
src/global.c | 4 3 + 1 - 0 !
src/hash.h | 2 2 + 0 - 0 !
src/hash/hash_mbedtls.c | 38 38 + 0 - 0 !
src/hash/hash_mbedtls.h | 20 20 + 0 - 0 !
src/settings.c | 16 15 + 1 - 0 !
src/streams/mbedtls.c | 452 452 + 0 - 0 !
src/streams/mbedtls.h | 20 20 + 0 - 0 !
src/streams/tls.c | 3 3 + 0 - 0 !
tests/core/stream.c | 5 2 + 3 - 0 !
14 files changed, 725 insertions(+), 9 deletions(-)

 [patch 01/15] mbedtls: initial support


disable online tests.patch | (download)

tests/CMakeLists.txt | 5 0 + 5 - 0 !
1 file changed, 5 deletions(-)

---
remove mbedtls from pkgconfig.patch | (download)

src/CMakeLists.txt | 6 4 + 2 - 0 !
1 file changed, 4 insertions(+), 2 deletions(-)

 [patch] mbedtls: don't require mbedtls from our pkgconfig file

mbedTLS has no pkgconfig file, hence we can't require it. For now, pass its link flags as our own.

index Fix alignment issues in write_disk_entry.patch | (download)

src/index.c | 42 21 + 21 - 0 !
1 file changed, 21 insertions(+), 21 deletions(-)

 [patch] index: fix alignment issues in write_disk_entry()

In order to avoid alignment issues on certain target architectures,
it is necessary to use memcpy() when modifying elements of a struct
inside a buffer returned by git_filebuf_reserve().

u segfault fix.patch | (download)

tests/threads/diff.c | 27 17 + 10 - 0 !
tests/threads/iterator.c | 5 4 + 1 - 0 !
2 files changed, 21 insertions(+), 11 deletions(-)

---
u segfault 2 fix.patch | (download)

src/transports/smart.c | 9 4 + 5 - 0 !
1 file changed, 4 insertions(+), 5 deletions(-)

 [patch] smart transport: only clear url on hard reset

After creating a transport for a server, we expect to be able to call
`connect`, then invoke subsequent `action` calls.  We provide the URL to
these `action` calls, although our built-in transports happen to ignore
it since they've already parsed it into an internal format that they
intend to use (`gitno_connection_data`).

In ca2eb4608243162a13c427e74526b6422d5a6659, we began clearing the URL
field after a connection, meaning that subsequent calls to transport
`action` callbacks would get a NULL URL, which went undetected since the
builtin transports ignore the URL when they're already connected
(instead of re-parsing it into an internal format).

Downstream custom transport implementations (eg, LibGit2Sharp) did
notice this change, however.

Since `reset_stream` is called even when we're not closing the
subtransport, update to only clear the URL when we're closing the
subtransport.  This ensures that `action` calls will get the correct URL
information even after a connection.