8000 bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character by uranusjr · Pull Request #4517 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

8000 bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character #4517

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

Merged

Conversation

uranusjr
Copy link
Contributor
@uranusjr uranusjr commented Nov 23, 2017

Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark Mc Mahon (markm).

Unfortunately Microsoft has deemed it necessary to return the size
of the string without the null termination character but insists
upon the size including it when passing it in. Arggh!

— Anthony, on the fix

https://bugs.python.org/issue1104

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@uranusjr uranusjr force-pushed the bpo-1104-msilib-getproperty-truncation branch from 1b632c1 to 75df15f Compare November 24, 2017 02:16
@uranusjr uranusjr force-pushed the bpo-1104-msilib-getproperty-truncation branch from 75df15f to cada3c4 Compare November 24, 2017 04:34
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark
Mc Mahon (markm).

    Unfortunately Microsoft has deemed it necessary to return the size
    of the string without the null termination character but insists
    upon the size including it when passing it in. Arggh!

                                            -- Anthony, on the fix
This makes the malloc/free calls more trackable even when more types are
added to
8000
 MsiSummaryInfoGetProperty.
@uranusjr uranusjr force-pushed the bpo-1104-msilib-getproperty-truncation branch from cada3c4 to 5291f2c Compare November 24, 2017 04:54
@zooba zooba merged commit 2de576e into python:master Feb 2, 2019
@miss-islington
Copy link
Contributor

Thanks @uranusjr for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 2, 2019
…e character (pythonGH-4517)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
(cherry picked from commit 2de576e)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@bedevere-bot
Copy link

GH-11738 is a backport of this pull request to the 3.7 branch.

@miss-islington
Copy link
Contributor

Sorry, @uranusjr and @zooba, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 2de576e16d42ce43698d384d0dd46ba6cf165424 2.7

miss-islington added a commit that referenced this pull request Feb 2, 2019
…e character (GH-4517)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
(cherry picked from commit 2de576e)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
uranusjr added a commit to uranusjr/cpython that referenced this pull request Feb 3, 2019
… by one character (pythonGH-4517)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm)..
(cherry picked from commit 2de576e)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@bedevere-bot
Copy link

GH-11749 is a backport of this pull request to the 2.7 branch.

miss-islington pushed a commit that referenced this pull request Feb 19, 2019
… by one character (GH-4517) (GH-11749)

Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in [bpo-1104](https://bugs.python.org/issue1104) by Anthony Tuininga (atuining) and Mark McMahon (markm)
(cherry picked from commit 2de576e)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>





https://bugs.python.org/issue1104
@uranusjr uranusjr deleted the bpo-1104-msilib-getproperty-truncation branch May 20, 2019 07:22
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.

5 participants
0