fix BufferedInputStream.read to not read more than specified length
fix BufferedInputStream.read to not read more than specified length

bgould/avian,badlogic/avian,bigfatbrowncat/avian-pack.avian,ucdseniordesign/avian,lwahlmeier/avian,lostdj/avian,joshuawarner32/avian,getlantern/avian,lwahlmeier/avian,bigfatbrowncat/avian-pack.avian,getlantern/avian,MaartenR/avian,getlantern/avian,getlantern/avian,dicej/avian,minor-jason/avian,bgould/avian,lostdj/avian,lostdj/avian,dicej/avian,minor-jason/avian,marcinolawski/avian,joshuawarner32/avian,bgould/avian,marcinolawski/avian,marcinolawski/avian,ucdseniordesign/avian,ucdseniordesign/avian,bgould/avian,bigfatbrowncat/avian-pack.avian,marcinolawski/avian,MaartenR/avian,ucdseniordesign/avian,bigfatbrowncat/avian-pack.avian,badlogic/avian,lwahlmeier/avian,lwahlmeier/avian,joshuawarner32/avian,dicej/avian,joshuawarner32/avian,minor-jason/avian,dicej/avian,lostdj/avian,badlogic/avian,badlogic/avian,MaartenR/avian,MaartenR/avian,minor-jason/avian