GNOME Bugzilla – Bug 781234
the buffer written to by g_input_stream_read is not marked as an out parameter
Last modified: 2018-05-24 19:29:02 UTC
This causes bindings created via gobject-introspection to treat buffer as an input.
Fixed in master; the changes will have to be propagated to gobject-introspection for its next release. 8446ee8 ginputstream: Add missing (out) annotations to read() functions
This patch doesn't take into account the connection to the length parameters. Treating these array-parameters as "out" might not be completely correct either.
(In reply to Rico Tzschichholz from comment #2) > This patch doesn't take into account the connection to the length parameters. > Treating these array-parameters as "out" might not be completely correct > either. How does it not take into account the connection to the length parameters? The annotations already have (array length=count). How is (out caller-allocates) not correct? The caller doesn’t pass any information in to g_input_stream_read() in the buffer. Do you have a suggestion for how to annotate them instead?
*** Bug 774009 has been marked as a duplicate of this bug. ***
The same annotations are touched in bug #774009, plus some others. The same solution should be applied to all of them. Rico, what were your concerns here?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1258.