Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-38

Buffer overflow in RecordingInputStream

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1
    • Fix Version/s: 1.0.3
    • Component/s: None
    • Labels:
      None

      Description

      Hi!

      I've discovered a bug in util.RecordingInputStream.java where buffer overflow is a almost guarantee.
      The method RecordingInputStream.read() reads from the underlying inputstream and stores the read bytes into an array.
      Unfortunately the array is fixed size at 1024 bytes and sometimes the amount of data exceeds this.
      Enclosed is a patch that will resize the array if it becomes full.

      cheers
      /Erik

      Erik Svensson
      Software Architect

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              jacob_northey Jacob Northey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: