[Asterisk-Dev] potentially nasty bugs in string pools usage

steve at daviesfam.org steve at daviesfam.org
Sun Jan 8 11:59:38 MST 2006



On Fri, 6 Jan 2006, Kevin P. Fleming wrote:

> I will think about this some more over the next few days; given the 
> application, it may make some sense to just document that string fields 
> are not something that you can preserve pointers to while you manipulate 
> the structure, and that you have to make copies of the fields in extreme 
> cases. I'm not sure that's the best option, but it's one way to solve it.

I worked on an OS once that used to move memory around under your feet in 
some circumstances.  It was all documented, but sheesh, it was a pain.  

Retrofitting that behaviour underneath all the existing code is a daunting 
idea.

Its just my .02,

Steve






More information about the asterisk-dev mailing list