Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
332 changes: 265 additions & 67 deletions deps/ngtcp2/nghttp3/lib/includes/nghttp3/nghttp3.h

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* Version number of the nghttp3 library release.
*/
#define NGHTTP3_VERSION "1.15.0"
#define NGHTTP3_VERSION "1.16.0"

/**
* @macro
Expand All @@ -41,6 +41,6 @@
* number, 8 bits for minor and 8 bits for patch. Version 1.2.3
* becomes 0x010203.
*/
#define NGHTTP3_VERSION_NUM 0x010f00
#define NGHTTP3_VERSION_NUM 0x011000

#endif /* !defined(NGHTTP3_VERSION_H) */
12 changes: 6 additions & 6 deletions deps/ngtcp2/nghttp3/lib/nghttp3_balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

void nghttp3_balloc_init(nghttp3_balloc *balloc, size_t blklen,
const nghttp3_mem *mem) {
assert((blklen & 0xfu) == 0);
assert((blklen & 0xFU) == 0);

balloc->mem = mem;
balloc->blklen = blklen;
Expand Down Expand Up @@ -67,7 +67,7 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) {

if (nghttp3_buf_left(&balloc->buf) < n) {
p = nghttp3_mem_malloc(balloc->mem,
sizeof(nghttp3_memblock_hd) + 0x8u + balloc->blklen);
sizeof(nghttp3_memblock_hd) + 0x8U + balloc->blklen);
if (p == NULL) {
return NGHTTP3_ERR_NOMEM;
}
Expand All @@ -77,15 +77,15 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) {
balloc->head = hd;
nghttp3_buf_wrap_init(
&balloc->buf,
(uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xfu) &
~(uintptr_t)0xfu),
(uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xFU) &
~(uintptr_t)0xFU),
balloc->blklen);
}

assert(((uintptr_t)balloc->buf.last & 0xfu) == 0);
assert(((uintptr_t)balloc->buf.last & 0xFU) == 0);

*pbuf = balloc->buf.last;
balloc->buf.last += (n + 0xfu) & ~(uintptr_t)0xfu;
balloc->buf.last += (n + 0xFU) & ~(size_t)0xFU;

return 0;
}
2 changes: 1 addition & 1 deletion deps/ngtcp2/nghttp3/lib/nghttp3_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ nghttp3_callbacks_convert_to_latest(nghttp3_callbacks *dest,
return src;
}

memset(dest, 0, sizeof(*dest));
*dest = (nghttp3_callbacks){0};

callbacks_copy(dest, src, callbacks_version);

Expand Down
Loading
Loading