Skip to content

http2: empty trailers lead to ASAN failures #8720

Closed

Description

@junr03

Description: currently the http2 codec submits trailers to nghttp2 with this function call:

nghttp2_submit_trailer(parent_.session_, stream_id_, &final_headers[0], final_headers.size());
. In the case that the passed in HeaderMap& is empty, that function call reports ASAN failures: reference binding to null pointer of type 'nghttp2_nv'.

nghttp2 checks for length of the vector before dereferencing, so the code behaves correctly. However, we should clean up trailer submission so that empty trailers don't create ASAN failures.

Activity

  1. added
    help wanted
    no stalebot
    on Oct 22, 2019
  2. added and removed
    no stalebot
    on Nov 1, 2019
  3. antoniovicente commented on May 27, 2020

    @antoniovicente
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions