Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSS-ONLY][BABEL] Fix invalid write valgrind warning inside NextCopyFrom #509

Open
wants to merge 1 commit into
base: BABEL_5_X_DEV__PG_17_X
Choose a base branch
from

Conversation

tanscorpio7
Copy link
Contributor

@tanscorpio7 tanscorpio7 commented Dec 27, 2024

Description

We missed removing a pfree during cherry pick from community
which resulted in invalid write since we ended up writing on freed
data inside NextCopyFrom() here

MemSet(cstate->defaults, false, num_phys_attrs * sizeof(bool));

babelfish cherry pick commit vs community commit

With this fix, problematic test file runs clean with valgrind

Issues Resolved

[BABEL-5501]

Sign Off

Signed-off-by: Tanzeel Khan [email protected]

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tanzeel Khan <[email protected]>
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.

2 participants