I see two contradicting statements in the definition of leb128().
It is a requirement of bitstream conformance that the value returned from the leb128 parsing process is less than or equal to (1 << 32) - 1.
constricts with
It is a requirement of bitstream conformance that the most significant bit of leb128_byte is equal to 0 if i is equal to 7. (This ensures that this syntax descriptor never uses more than 8 bytes.)
First statement limits the number of bytes to 5. Second says that the limit is 8. I guess the first one wins :)
I see two contradicting statements in the definition of leb128().
constricts with
First statement limits the number of bytes to 5. Second says that the limit is 8. I guess the first one wins :)