Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-903

Infinite Loop on Malformed Message - Bad BodyLength (tag 9)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: Engine
    • Labels:
      None

      Description

      If two messages are received in a row with a malformed tag 9 - the fix engine enters an infinite loop of logging and eventually causes the JVM to crash with an OutOfMemory exception.

      Sent the following message twice

      8=FIX.4.4|9=A|35=D|49=ST|56=TS|34=3|52=20160830-14:21:45.472|11=Order32|1=Template1|21=1|55=VOD.L|48=VOD.L|22=5|167=CS|207=LSE|54=1|60=20160830-14:21:45.472|38=100|40=2|44=95|15=GBp|59=0|58=Staging|10=206|
      

      Enter infinite loop in

      quickfix.mina.message.FIXMessageDecoder#parseMessage
      

      logging

      quickfix.mina.message.FIXMessageDecoder - handleError - Length format error in message (last character:65)
      

        Attachments

          Activity

            People

            • Assignee:
              chrjohn Christoph John
              Reporter:
              adam0292 Adam MacDonald
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: