Fix global-buffer-overflow
This commit is contained in:
parent
2620992003
commit
fc17c0a618
|
@ -1157,15 +1157,11 @@ static nghttp2_hd_entry *add_hd_table_incremental(nghttp2_hd_context *context,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int name_eq(const nghttp2_nv *a, const nghttp2_nv *b) {
|
static int name_eq(const nghttp2_nv *a, const nghttp2_nv *b) {
|
||||||
return a->namelen == b->namelen &&
|
return a->namelen == b->namelen && memeq(a->name, b->name, a->namelen);
|
||||||
a->name[a->namelen - 1] == b->name[a->namelen - 1] &&
|
|
||||||
memeq(a->name, b->name, a->namelen);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int value_eq(const nghttp2_nv *a, const nghttp2_nv *b) {
|
static int value_eq(const nghttp2_nv *a, const nghttp2_nv *b) {
|
||||||
return a->valuelen == b->valuelen &&
|
return a->valuelen == b->valuelen && memeq(a->value, b->value, a->valuelen);
|
||||||
a->value[a->valuelen - 1] == b->value[a->valuelen - 1] &&
|
|
||||||
memeq(a->value, b->value, a->valuelen);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in New Issue