Skip to content

Commit

Permalink
Bump github.com/jackc/pgx/v5 from 5.4.1 to 5.5.4 in /postgres (#33)
Browse files Browse the repository at this point in the history
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.4.1
to 5.5.4.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jackc/pgx/blob/master/CHANGELOG.md">github.com/jackc/pgx/v5's
changelog</a>.</em></p>
<blockquote>
<h1>5.5.4 (March 4, 2024)</h1>
<p>Fix CVE-2024-27304</p>
<p>SQL injection can occur if an attacker can cause a single query or
bind message to exceed 4 GB in size. An integer
overflow in the calculated message size can cause the one large message
to be sent as multiple messages under the
attacker's control.</p>
<p>Thanks to Paul Gerste for reporting this issue.</p>
<ul>
<li>Fix behavior of CollectRows to return empty slice if Rows are empty
(Felix)</li>
<li>Fix simple protocol encoding of json.RawMessage</li>
<li>Fix *Pipeline.getResults should close pipeline on error</li>
<li>Fix panic in TryFindUnderlyingTypeScanPlan (David Kurman)</li>
<li>Fix deallocation of invalidated cached statements in a
transaction</li>
<li>Handle invalid sslkey file</li>
<li>Fix scan float4 into sql.Scanner</li>
<li>Fix pgtype.Bits not making copy of data from read buffer. This would
cause the data to be corrupted by future reads.</li>
</ul>
<h1>5.5.3 (February 3, 2024)</h1>
<ul>
<li>Fix: prepared statement already exists</li>
<li>Improve CopyFrom auto-conversion of text-ish values</li>
<li>Add ltree type support (Florent Viel)</li>
<li>Make some properties of Batch and QueuedQuery public (Pavlo
Golub)</li>
<li>Add AppendRows function (Edoardo Spadolini)</li>
<li>Optimize convert UUID [16]byte to string (Kirill Malikov)</li>
<li>Fix: LargeObject Read and Write of more than ~1GB at a time
(Mitar)</li>
</ul>
<h1>5.5.2 (January 13, 2024)</h1>
<ul>
<li>Allow NamedArgs to start with underscore</li>
<li>pgproto3: Maximum message body length support (jeremy.spriet)</li>
<li>Upgrade golang.org/x/crypto to v0.17.0</li>
<li>Add snake_case support to RowToStructByName (Tikhon Fedulov)</li>
<li>Fix: update description cache after exec prepare (James Hartig)</li>
<li>Fix: pipeline checks if it is closed (James Hartig and Ryan
Fowler)</li>
<li>Fix: normalize timeout / context errors during TLS startup (Samuel
Stauffer)</li>
<li>Add OnPgError for easier centralized error handling (James
Hartig)</li>
</ul>
<h1>5.5.1 (December 9, 2023)</h1>
<ul>
<li>Add CopyFromFunc helper function. (robford)</li>
<li>Add PgConn.Deallocate method that uses PostgreSQL protocol Close
message.</li>
<li>pgx uses new PgConn.Deallocate method. This allows deallocating
statements to work in a failed transaction. This fixes a case where the
prepared statement map could become invalid.</li>
<li>Fix: Prefer driver.Valuer over json.Marshaler for json fields.
(Jacopo)</li>
<li>Fix: simple protocol SQL sanitizer previously panicked if an invalid
$0 placeholder was used. This now returns an error instead.
(maksymnevajdev)</li>
<li>Add pgtype.Numeric.ScanScientific (Eshton Robateau)</li>
</ul>
<h1>5.5.0 (November 4, 2023)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/jackc/pgx/commit/da6f2c98f2664b215b40b1606551fdfcc7f3ea5c"><code>da6f2c9</code></a>
Update changelog</li>
<li><a
href="https://github.com/jackc/pgx/commit/c543134753a0c5d22881c12404025724cb05ffd8"><code>c543134</code></a>
SQL sanitizer wraps arguments in parentheses</li>
<li><a
href="https://github.com/jackc/pgx/commit/20344dfae83e672eff73a03324398543a1d87f43"><code>20344df</code></a>
Check for overflow on uint16 sizes in pgproto3</li>
<li><a
href="https://github.com/jackc/pgx/commit/adbb38f298c76e283ffc7c7a3f571036fea47fd4"><code>adbb38f</code></a>
Do not allow protocol messages larger than ~1GB</li>
<li><a
href="https://github.com/jackc/pgx/commit/c1b0a01ca75ac9eb3a7dbc1396f583ab5dbf9557"><code>c1b0a01</code></a>
Fix behavior of CollectRows to return empty slice if Rows are empty</li>
<li><a
href="https://github.com/jackc/pgx/commit/88dfc22ae4aa031783cda90841d5358edd85ff2c"><code>88dfc22</code></a>
Fix simple protocol encoding of json.RawMessage</li>
<li><a
href="https://github.com/jackc/pgx/commit/2e84dccaf57b4fa803149884f2149dfa9e923593"><code>2e84dcc</code></a>
*Pipeline.getResults should close pipeline on error</li>
<li><a
href="https://github.com/jackc/pgx/commit/d149d3fe5c50d1d98bd6265d3c928519ba4b3f4b"><code>d149d3f</code></a>
Fix panic in TryFindUnderlyingTypeScanPlan</li>
<li><a
href="https://github.com/jackc/pgx/commit/046f497efb4e92caa9575a0e9c351e4906af14c6"><code>046f497</code></a>
deallocateInvalidatedCachedStatements now runs in transactions</li>
<li><a
href="https://github.com/jackc/pgx/commit/8896bd697781ed4aee392daa90b90cde142319fe"><code>8896bd6</code></a>
Handle invalid sslkey file</li>
<li>Additional commits viewable in <a
href="https://github.com/jackc/pgx/compare/v5.4.1...v5.5.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/jackc/pgx/v5&package-manager=go_modules&previous-version=5.4.1&new-version=5.5.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/stealthrocket/net/network/alerts).

</details>
  • Loading branch information
achille-roussel authored Apr 25, 2024
2 parents a134094 + d1f6dcd commit 1aea4f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion postgres/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ module github.com/stealthrocket/net/postgres
go 1.21

require (
github.com/jackc/pgx/v5 v5.4.1
github.com/jackc/pgx/v5 v5.5.4
github.com/stealthrocket/net v0.1.3-0.20230609185417-24d7c1a5dd46
)

require (
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/text v0.14.0 // indirect
)
8 changes: 6 additions & 2 deletions postgres/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk=
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgx/v5 v5.4.1 h1:oKfB/FhuVtit1bBM3zNRRsZ925ZkMN3HXL+LgLUM9lE=
github.com/jackc/pgx/v5 v5.4.1/go.mod h1:q6iHT8uDNXWiFNOlRqJzBTaSH3+2xCXkokxHZC5qWFY=
github.com/jackc/pgx/v5 v5.5.4 h1:Xp2aQS8uXButQdnCMWNmvx6UysWQQC+u1EoizjguY+8=
github.com/jackc/pgx/v5 v5.5.4/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A=
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stealthrocket/net v0.1.3-0.20230609185417-24d7c1a5dd46 h1:6kat2nufqnZfMg+5WDUiwnFtKY820WR9Fu5NzUchmwQ=
Expand All @@ -20,6 +22,8 @@ golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down

0 comments on commit 1aea4f5

Please sign in to comment.