postgresql-interfaces/psqlodbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: micahdbak (@micahdbak) <[email protected]>
To: postgresql-interfaces/psqlodbc <[email protected]>
Subject: [postgresql-interfaces/psqlodbc] PR #106: chore: update makeConnectString to not overflow connect_string where len < MAX_CONNECT_STRING
Date: Thu, 10 Apr 2025 22:47:09 +0000
Message-ID: <[email protected]> (raw)

The current implementation of makeConnectString assumes that the input connect_string has size >= MAX_CONNECT_STRING, despite taking in a length argument.

The updated version ensures that the output string has min(len, MAX_CONNECT_STRING) chars written, properly terminated for either case.

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://postgresql-interfaces/psqlodbc
  Cc: [email protected], [email protected]
  Subject: Re: [postgresql-interfaces/psqlodbc] PR #106: chore: update makeConnectString to not overflow connect_string where len < MAX_CONNECT_STRING
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox