read 4 bytes when decoding u32

This commit is contained in:
Sascha L. Teichmann 2024-01-07 15:37:38 +01:00
parent eac426e2f4
commit ca4fd3b279
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func (ber *bigEndianReader) u32() (uint32, error) {
if ber.err != nil {
return 0, ber.err
}
four := ber.buf[:2]
four := ber.buf[:4]
_, err := io.ReadFull(ber.parent, four)
if err != nil {
ber.err = err