Ah yeah it assumes that if the cellsizes match they are also the same as sx,
which they don't have to be. It should be fixed to use cellsize probably, since
if they are the same there isn't any point in checking further.


On Wed, Jan 27, 2010 at 12:38:08PM -0800, Micah Cowan wrote:
> Nicholas Marriott wrote:
> >> Bad memory accesses occurs when we get to the call to grid_compare()
> >> after the "out:" label. Inside grid_compare(), the inner loop assumes
> >> that both grids use their entire horizontal space on each line.
> > 
> > Hmm. It explicitly checks they are the same size (gla->cellsize !=
> > glb->cellsize), why doesn't that catch it?
> 
> IIRC, at that point, they are both cellsize == 1. The inner loop doesn't
> use cellsize as the limit, it uses ga->sx, under the assumption that
> cellsize for both == ga->sx. Which is normally true, when we haven't
> wrapped like that.
> 
> -- 
> Micah J. Cowan
> http://micah.cowan.name/

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to