fix(fuzz): add missing ensure_size! in ServerUpgradeLicense (#455)

This commit is contained in:
Vladyslav Nikonov
2024-05-02 20:36:55 +03:00
committed by GitHub
parent 083b5044ad
commit 7a1ff4a8e7
@@ -78,6 +78,7 @@ impl ServerUpgradeLicense {
return Err(invalid_message_err!("blobType", "unexpected blob type"));
}
ensure_size!(in: src, size: encrypted_license_info_blob.length + MAC_SIZE);
let encrypted_license_info = src.read_slice(encrypted_license_info_blob.length).into();
let mac_data = src.read_slice(MAC_SIZE).into();