Fix ssz_split bug

This commit is contained in:
Paul Hauner 2018-09-25 07:17:14 +10:00
parent 1677b6dcc8
commit 209076e371
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -44,7 +44,7 @@ pub fn split_one_attestation<'a>(full_ssz: &'a [u8], index: usize)
+ hashes_len
+ bitfield_len;
if index + full_ssz.len() < len {
if full_ssz.len() < index + len {
return Err(AttestationSplitError::TooShort);
}