Qpid
  1. Qpid
  2. QPID-3030

C++ buffer encoding allows overflow on write.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9
    • Component/s: C++ Broker, C++ Client
    • Labels:
      None
    • Environment:

      Linux

      Description

      The framing Buffer::put

      {Short,Medium,Long}

      String() or Buffer::putRawData() do not validate the length of the written data, and may allow overflow of the buffer.

      1. console.cpp
        5 kB
        Ken Giusti

        Activity

        Hide
        Ken Giusti added a comment -

        Testcase that can cause buffer overwrite and crash. Try:

        console 65500

        Show
        Ken Giusti added a comment - Testcase that can cause buffer overwrite and crash. Try: console 65500

          People

          • Assignee:
            Ken Giusti
            Reporter:
            Ken Giusti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development