Skip to content

Stop cstring reading on any falsy value#3691

Open
brianc wants to merge 1 commit into
masterfrom
bmc/security-advisory-fix
Open

Stop cstring reading on any falsy value#3691
brianc wants to merge 1 commit into
masterfrom
bmc/security-advisory-fix

Conversation

@brianc

@brianc brianc commented Jun 17, 2026

Copy link
Copy Markdown
Owner

I got a massive, obviously LLM generated security vuln report generated about a potential MITM attack where if you connect pg to a compromised backend or a malicious MITM and the cstring buffer does not have a null terminator anywhere in it it will cause your process to infinite loop. Pretty unlikely to happen in practice and honestly you're probably in more trouble than just that if your db connection is being tampered with maliciously, but I figure its still worth fixing since the fix itself is very straight forward.

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