| Summary: | tp_group_mixin_remove_members_with_reason breaks API guarantees | ||
|---|---|---|---|
| Product: | Telepathy | Reporter: | Jonny Lamb <jonny.lamb> |
| Component: | tp-glib | Assignee: | Simon McVittie <smcv> |
| Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
| Severity: | normal | ||
| Priority: | medium | CC: | youness.alaoui |
| Version: | 0.12 | Keywords: | patch |
| Hardware: | Other | ||
| OS: | All | ||
| URL: | http://git.collabora.co.uk/?p=user/smcv/telepathy-glib-smcv.git;a=shortlog;h=refs/heads/012-actually-const | ||
| Whiteboard: | review+ | ||
| i915 platform: | i915 features: | ||
|
Description
Jonny Lamb
2010-11-12 06:54:05 UTC
(In reply to comment #0) > tp_group_mixin_remove_members_with_reason takes a const GArray *contacts but > then modifies the contents of this const GArray*. Oops. I'll get on that. I was surprised the compiler didn't catch this, but it turns out to be because g_array_index contains a cast to (TpHandle *), which casts away the constness at the same time as correcting the type. (In reply to comment #2) > I was surprised the compiler didn't catch this, but it turns out to be because > g_array_index contains a cast to (TpHandle *), which casts away the constness > at the same time as correcting the type. Okay, I'll let you off this time. Fixed in git for 0.12.4 and 0.13.6 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.