search for: numeric_length

Displaying 1 result from an estimated 1 matches for "numeric_length".

2008 Jun 10
3
Backgroundrb fixes for transfering large amounts of data
...em is an exception in the Marshal.load call in the receive_data method in the Packet::MetaPimp class. The root cause is in the BinParser module, in the arm of code handling the parser state 1 (reading in the data). The issue is that, at the marked line of code the pack_data array will be at most @numeric_length entries because of the format string passed to the unpack call. This results in the code dropping a chunk of data and then hitting the exception in a subsequent Marshal.load call. elsif @parser_state == 1 pack_data,remaining = new_data.unpack("a#{@numeric_length}a*")...