Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-2215

[http2] Wrong printf format specifier in read_data_callback

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • None
    • None

    Description

      *** CID 372166:  API usage errors  (PRINTF_ARGS)
      /home/kgiusti/work/dispatch/qpid-dispatch/src/adaptors/http2/http2_adaptor.c: 1340 in read_data_callback()
      1334                                    stream_data->full_payload_handled = false;
      1335                            }
      1336                            else {
      1337                                    bytes_to_send = remaining_payload_length;
      1338                             set_buffers_to_send(stream_data, bytes_to_send);
      1339                                    stream_data->full_payload_handled = true;
      >>>     CID 372166:  API usage errors  (PRINTF_ARGS)
      >>>     Argument "remaining_payload_length" to format specifier "%zu" was expected to have type "size_t"("unsigned long") but has type "int".
      1340                                    qd_log(http2_adaptor->protocol_log_source, QD_LOG_TRACE, "[C%"PRIu64"][S%"PRId32"] read_data_callback remaining_payload_length (%zu) <= QD_HTTP2_BUFFER_SIZE(16384), bytes_to_send=%zu, stream_data->qd_buffers_to_send=%zu", conn->conn_id, stream_data->stream_id, remaining_payload_length, bytes_to_send, stream_data->qd_buffers_to_send);
      1341     
      1342                             // Look ahead one body data
      1343                             stream_data->next_stream_data_result = qd_message_next_stream_data(message, &stream_data->next_stream_data);
      1344                             if (stream_data->next_stream_data_result == QD_MESSAGE_STREAM_DATA_NO_MORE) {
      1345                                 *data_flags |= NGHTTP2_DATA_FLAG_EOF;

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            gmurthy Ganesh Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: