From: Bob Hutchison Date: 2007-10-24T21:38:58+09:00 Subject: Re: pop/push, shift/unshift On 24-Oct-07, at 5:03 AM, Thufir wrote: > On Tue, 23 Oct 2007 23:32:01 +0900, Bob Hutchison wrote: > >> Implementing a cache (the uncached stuff was hanging around in >> memory, >> intermittently since unshift will re-use the parts of the array >> before >> the start). I also found (and reported, maybe even supplied a >> patch for) >> a problem in Mongrel's thread management code that was using >> shift. How >> did I debug it the first time? Don't ask. > > > Could this lead to a security problem down the road? I don't think so in the cases I mentioned. The objects in front of the array are not accessible using Ruby. I suppose you could write some C code easily enough to get at them. Cheers, Bob > > > -Thufir > > ---- Bob Hutchison -- tumblelog at http:// www.recursive.ca/so/ Recursive Design Inc. -- weblog at http://www.recursive.ca/ hutch http://www.recursive.ca/ -- works on http://www.raconteur.info/ cms-for-static-content/home/