Fixed out of bound read in flush_bits am: 763ffef681 am: 16620937c2
am: cb0ef8df6e

* commit 'cb0ef8df6ef9e64a93a30387e62e88abda0b339f':
  Fixed out of bound read in flush_bits

Change-Id: I60b30dee61de2818ef0b9f92516f28f465c7fbf5