rubyamf / rocketamf

52 stars 34 forks source link

Fix bug: read extra fields if flags array is shorter than fields #12

Closed robertabcd closed 11 years ago

robertabcd commented 12 years ago

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