After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784022 - Add various array length annotations to GtkEditable, GtkTextBuffer, GtkSelection and GtkImContext
Add various array length annotations to GtkEditable, GtkTextBuffer, GtkSelect...
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-06-21 07:23 UTC by Sebastian Dröge (slomo)
Modified: 2017-06-22 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add various array length annotations to GtkEditable and GtkTextBuffer (4.02 KB, patch)
2017-06-21 07:23 UTC, Sebastian Dröge (slomo)
none Details | Review
Add various array length annotations to GtkEditable, GtkTextBuffer, GtkSelection and GtkImContext (5.15 KB, patch)
2017-06-21 07:25 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Sebastian Dröge (slomo) 2017-06-21 07:23:21 UTC
See summary
Comment 1 Sebastian Dröge (slomo) 2017-06-21 07:23:25 UTC
Created attachment 354139 [details] [review]
Add various array length annotations to GtkEditable and GtkTextBuffer
Comment 2 Sebastian Dröge (slomo) 2017-06-21 07:25:17 UTC
Created attachment 354140 [details] [review]
Add various array length annotations to GtkEditable, GtkTextBuffer, GtkSelection and GtkImContext
Comment 3 Sebastian Dröge (slomo) 2017-06-22 11:13:42 UTC
 I discussed the string+length stuff with ebassi on IRC, and there's no way to correctly annotate that currently unless your "string" is actually an array of bytes (and not a UTF8 string), in which case it would be (array length=len) (element-type guint8)