rubyamf/rocketamf — pull request #12 by robertabcd (2012-08-04 16:44:57+00:00)
Title: Fix bug: read extra fields if flags array is shorter than fields

if flags.length < fields.length, "flags[i] & 2**j != 0" will be evaluated as "nil & 2**j != 0", which is always true.