deps: update nghttp3 to 1.6.0 · nodejs/node@8658833 · GitHub
Skip to content

Commit 8658833

Browse files
nodejs-github-botaduh95
authored andcommitted
deps: update nghttp3 to 1.6.0
PR-URL: #56258 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent 7c941d4 commit 8658833

54 files changed

Lines changed: 7274 additions & 6766 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deps/ngtcp2/nghttp3/lib/includes/nghttp3/nghttp3.h

Lines changed: 70 additions & 40 deletions

deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* Version number of the nghttp3 library release.
3333
*/
34-
#define NGHTTP3_VERSION "0.7.0"
34+
#define NGHTTP3_VERSION "1.6.0"
3535

3636
/**
3737
* @macro
@@ -41,6 +41,6 @@
4141
* number, 8 bits for minor and 8 bits for patch. Version 1.2.3
4242
* becomes 0x010203.
4343
*/
44-
#define NGHTTP3_VERSION_NUM 0x000700
44+
#define NGHTTP3_VERSION_NUM 0x010600
4545

46-
#endif /* NGHTTP3_VERSION_H */
46+
#endif /* !defined(NGHTTP3_VERSION_H) */

deps/ngtcp2/nghttp3/lib/nghttp3_balloc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) {
6666
assert(n <= balloc->blklen);
6767

6868
if (nghttp3_buf_left(&balloc->buf) < n) {
69-
p = nghttp3_mem_malloc(balloc->mem, sizeof(nghttp3_memblock_hd) + 0x10u +
70-
balloc->blklen);
69+
p = nghttp3_mem_malloc(balloc->mem,
70+
sizeof(nghttp3_memblock_hd) + 0x8u + balloc->blklen);
7171
if (p == NULL) {
7272
return NGHTTP3_ERR_NOMEM;
7373
}
@@ -76,10 +76,10 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) {
7676
hd->next = balloc->head;
7777
balloc->head = hd;
7878
nghttp3_buf_wrap_init(
79-
&balloc->buf,
80-
(uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xfu) &
81-
~(uintptr_t)0xfu),
82-
balloc->blklen);
79+
&balloc->buf,
80+
(uint8_t *)(((uintptr_t)p + sizeof(nghttp3_memblock_hd) + 0xfu) &
81+
~(uintptr_t)0xfu),
82+
balloc->blklen);
8383
}
8484

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

deps/ngtcp2/nghttp3/lib/nghttp3_balloc.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#ifdef HAVE_CONFIG_H
3030
# include <config.h>
31-
#endif /* HAVE_CONFIG_H */
31+
#endif /* defined(HAVE_CONFIG_H) */
3232

3333
#include <nghttp3/nghttp3.h>
3434

@@ -40,7 +40,10 @@ typedef struct nghttp3_memblock_hd nghttp3_memblock_hd;
4040
* nghttp3_memblock_hd is the header of memory block.
4141
*/
4242
struct nghttp3_memblock_hd {
43-
nghttp3_memblock_hd *next;
43+
union {
44+
nghttp3_memblock_hd *next;
45+
uint64_t pad;
46+
};
4447
};
4548

4649
/*
@@ -89,4 +92,4 @@ int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n);
8992
*/
9093
void nghttp3_balloc_clear(nghttp3_balloc *balloc);
9194

92-
#endif /* NGHTTP3_BALLOC_H */
95+
#endif /* !defined(NGHTTP3_BALLOC_H) */

deps/ngtcp2/nghttp3/lib/nghttp3_buf.h

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)