|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2011-01-08 17:04, Jon Paris wrote:
On Jan 8, 2011, at 1:00 PM,rpg400-l-request@xxxxxxxxxxxx wrote:Yes. I was under that impression too, but at v5.4.0 linked list nodes
There's a gotcha though. If the allocated storage contains pointers, they may no longer be valid after running reallocHave you had experience of this happening Pete? I was under the impression that the move of the storage was done pointer-safe to avoid this possibility.
Jon Paris
www.Partner400.com
www.SystemiDeveloper.com
ended up containing garbage after running realloc. The system still
considered the pointers valid. At least it didn't complain about them.
They just no longer pointed to the data. I'm assuming they were still
pointing to the original storage, but I really don't know that.
- -- Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk0pRDQACgkQXczQcKdXKg7g8wCeIZE62P55ABjUyCQS2NzgNTw5
WzUAnjos1/mDS3OaGt6goEc1hKFmwQnI
=nJXU
-----END PGP SIGNATURE-----
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.