[FAST-38] Buffer overflow in RecordingInputStream Created: 28/Oct/11  Updated: 28/Oct/11  Resolved: 28/Oct/11

Status: Resolved
Project: OpenFAST
Component/s: None
Affects Version/s: 1.0.0, 1.0.1
Fix Version/s: 1.0.3

Type: Bug Priority: Major
Reporter: Jacob Northey Assignee: Jacob Northey
Resolution: Fixed Votes: 0
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



 Comments   
Comment by Jacob Northey [ 28/Oct/11 ]

Committed Erik's patch.

Generated at Sat Nov 23 18:22:42 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.