Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add slice size check to unmarshaler.unmarshalList() #5331

Closed
wants to merge 1 commit into from

Conversation

noamcohen97
Copy link

[IMPORTANT] We announced the upcoming end-of-support for AWS SDK for Go v1. We are no longer accepting PRs for the v1 SDK.

resolves #5330

value.Set(reflect.MakeSlice(value.Type(), l, l))
} else {
if value.Kind() != reflect.Slice || value.Len() < len(listData) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could simply replace the list with a correctly sized one, rather than emitting an error.​

@lucix-aws
Copy link
Contributor

#5270

@lucix-aws lucix-aws closed this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants