Skip to content

Fix possible nre while writing to RawCopyStream after break#5213

Merged
vonzshik merged 2 commits intomainfrom
5209-raw-copy-write-nre-fix
Aug 25, 2023
Merged

Fix possible nre while writing to RawCopyStream after break#5213
vonzshik merged 2 commits intomainfrom
5209-raw-copy-write-nre-fix

Conversation

@vonzshik
Copy link
Copy Markdown
Contributor

Fixes #5209

@vonzshik vonzshik requested a review from roji as a code owner August 25, 2023 11:20
Copy link
Copy Markdown
Member

@NinoFloris NinoFloris left a comment

Choose a reason for hiding this comment

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

LGTM

@vonzshik vonzshik merged commit d8c70e5 into main Aug 25, 2023
@vonzshik vonzshik deleted the 5209-raw-copy-write-nre-fix branch August 25, 2023 15:12
vonzshik added a commit that referenced this pull request Aug 25, 2023
Fixes #5209

(cherry picked from commit d8c70e5)

# Conflicts:
#	test/Npgsql.Tests/CopyTests.cs
vonzshik added a commit that referenced this pull request Aug 25, 2023
Fixes #5209

(cherry picked from commit d8c70e5)

# Conflicts:
#	test/Npgsql.Tests/CopyTests.cs
vonzshik added a commit that referenced this pull request Aug 25, 2023
Fixes #5209

(cherry picked from commit d8c70e5)

# Conflicts:
#	src/Npgsql/NpgsqlRawCopyStream.cs
#	test/Npgsql.Tests/CopyTests.cs
#	test/Npgsql.Tests/Support/PgServerMock.cs
@vonzshik
Copy link
Copy Markdown
Contributor Author

Backported to 7.0.6 via 29d9395, 6.0.10 via 7dd2d4e, 5.0.17 via 2316c4f

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.

NullReferenceException in NpgsqlRawCopyStream.Write / NpgsqlRawCopyStream.WriteAsync

2 participants