Skip to content

fix: skip bytes in an invalid stream defensively - #241

Merged
olavloite merged 1 commit into
postgresql-dialectfrom
skip-defensively
Jun 29, 2022
Merged

olavloite merged 1 commit into
postgresql-dialectfrom
skip-defensively

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

PGAdapter should defensively skip bytes if it receives a message that it
does not recognize (i.e. the stream has become corrupted). Otherwise,
the stream might block if it tries to skip more bytes than are available
in the stream, which again could cause the connection to be blocked.

PGAdapter should defensively skip bytes if it receives a message that it
does not recognize (i.e. the stream has become corrupted). Otherwise,
the stream might block if it tries to skip more bytes than are available
in the stream, which again could cause the connection to be blocked.
@codecov

codecov Bot commented Jun 29, 2022

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (postgresql-dialect@d39cec8). Click here to learn what that means.
The diff coverage is n/a.

@@                  Coverage Diff                  @@
##             postgresql-dialect     #241   +/-   ##
=====================================================
  Coverage                      ?   80.99%           
  Complexity                    ?     1111           
=====================================================
  Files                         ?       94           
  Lines                         ?     3726           
  Branches                      ?      445           
=====================================================
  Hits                          ?     3018           
  Misses                        ?      546           
  Partials                      ?      162           
Flag Coverage Δ
all_tests 80.99% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d39cec8...39f3517. Read the comment docs.

@olavloite
olavloite merged commit 1c60253 into postgresql-dialect Jun 29, 2022
@olavloite
olavloite deleted the skip-defensively branch June 29, 2022 17:39
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.

1 participant