• Zhongyi Shi's avatar
    Fix a socket NULL-dereference in ProcessReadResult. · bc94d07a
    Zhongyi Shi authored
    The QuicChromiumPacketReader upon finishing the socket read, will dereference
    the socket to get local and peer addresses and report packet back to the
    visitor unconditionally even if the connection is closed. The patch landed in
    crrev.com/c/1900569 nulls out the socket upon connection close, leading to null
    dereference when fetching local and peer addresses.
    
    Bug: 1014092, 1021938
    Change-Id: I9af79f03b3e2ffbe1ed036af8980efa6b6d1478c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1901946
    Commit-Queue: Zhongyi Shi <zhongyi@chromium.org>
    Reviewed-by: default avatarRyan Hamilton <rch@chromium.org>
    Auto-Submit: Zhongyi Shi <zhongyi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#713287}
    bc94d07a
quic_chromium_client_session_test.cc 83.3 KB