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

Assorted fixes for MBS #277

Merged
merged 3 commits into from
May 1, 2019
Merged

Conversation

sgallagher
Copy link
Collaborator

Adds a patch to reorder the strict argument for ModuleStream.read_*() so that it appears in the same order in the docs as in the function arguments. (Related to #273)

Adds a test for unicode in stream descriptions (related to #275)

Adds a fix for a subtle memory-management issue in XMD. (Fixes #274)

It should be in the same order as the function definition.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
It's unsafe to call g_variant_new_from_data() with data living within
another GVariant. The appropriate way to do this is to copy the data
into a new buffer, then create the new GVariant from that (and set
a GDestroyNotify function to free the buffer when it's done).

Fixes: fedora-modularity#274

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
@sgallagher sgallagher requested a review from mprahl May 1, 2019 02:51
Copy link
Contributor

@mprahl mprahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. The scratch build linked in #274 also worked as expected.

@sgallagher sgallagher merged commit e9edb6c into fedora-modularity:master May 1, 2019
@sgallagher sgallagher deleted the mbs_fixes branch May 21, 2019 16:00
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.

get_xmd causes an assertion error when called twice
2 participants