Skip to content

Fix extra specs nil pointer deref#788

Merged
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:fix-nil-pointer-deref
Jun 16, 2026
Merged

Fix extra specs nil pointer deref#788
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:fix-nil-pointer-deref

Conversation

@gabriel-samfira

Copy link
Copy Markdown
Member

When pools have extra specs set explicitly to null, the variable we unmarshal into, if the type is nullable, will become null. In this case a ma[string]any{}, even if it was previously initialized to a non-null value, will become null. Any attempt to assign it it will cause a panic.

Guard against that case.

Fixes: #787

When pools have extra specs set explicitly to `null`, the variable we
unmarshal into, if the type is nullable, will become null. In this case
a ma[string]any{}, even if it was previously initialized to a non-null
value, will become null. Any attempt to assign it it will cause a panic.

Guard against that case.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira gabriel-samfira merged commit 29ef936 into cloudbase:main Jun 16, 2026
5 checks passed
@gabriel-samfira gabriel-samfira deleted the fix-nil-pointer-deref branch June 16, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Couple of issues encountered after updating to v0.2.1

1 participant