Skip to content

src/quic_rx.c: null pointer dereference suspected by coverity #2366

@chipitsine

Description

@chipitsine

Tool Name and Version

coverity

Code Report

*** CID 1528841:  Null pointer dereferences  (REVERSE_INULL)
/src/quic_rx.c: 298 in qc_handle_newly_acked_frm()
292                     if (offset <= stream->ack_offset) {
293                             if (qc_stream_desc_ack(&stream, offset, len)) {
294                                     TRACE_DEVEL("stream consumed", QUIC_EV_CONN_ACKSTRM,
295                                                 qc, strm_frm, stream);
296                             }
297     
>>>     CID 1528841:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "stream" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
298                             if (!stream) {
299                                     /* no need to continue if stream freed. */
300                                     TRACE_DEVEL("stream released and freed", QUIC_EV_CONN_ACKSTRM, qc);
301                                     qc_release_frm(qc, frm);
302                                     qc_check_close_on_released_mux(qc);
303                                     break;

Additional Information

No response

Output of haproxy -vv

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: code-reportThis issue describes a code report (like valgrind or coverity)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions