Accept the buffer size in bytes and check for overflow before passing the value in bits to init_get_bits.
Attach a file by drag & drop or click to upload