[PD-dev] [pure-data:patches] #583 fix pointer issues with [list store]

Ticket 583 583 at patches.pure-data.p.re.sf.net
Mon Jul 24 21:58:42 CEST 2017




---

** [patches:#583] fix pointer issues with [list store]**

**Status:** open
**Group:** bugfix
**Created:** Mon Jul 24, 2017 07:58 PM UTC by Anonymous
**Last Updated:** Mon Jul 24, 2017 07:58 PM UTC
**Owner:** Miller Puckette
**Attachments:**

- [list-store-patch.diff](https://sourceforge.net/p/pure-data/patches/583/attachment/list-store-patch.diff) (2.9 kB; application/octet-stream)


this commit fixes two issues:

1) mistake in list_store_get (wrong onset for alist_toatoms)
2) when the alist moves in memory (because of memmove() and/or resizebytes()) gpointer atoms point to an old location in memory. I added a function list_store_restore_gpointers() which is called whenever that happens.

I also attached a test patch.

Christof


---

Sent from sourceforge.net because pd-dev at lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20170724/26737e75/attachment.html>


More information about the Pd-dev mailing list