mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Don't read beyond the edge of the screen when searching (dies with debug
enabled).
This commit is contained in:
		@@ -504,6 +504,8 @@ window_copy_search_rl(struct grid *gd,
 | 
			
		||||
	u_int	ax, bx, px;
 | 
			
		||||
 | 
			
		||||
	for (ax = last + 1; ax > first; ax--) {
 | 
			
		||||
		if (gd->sx - (ax - 1) < sgd->sx)
 | 
			
		||||
			continue;
 | 
			
		||||
		for (bx = 0; bx < sgd->sx; bx++) {
 | 
			
		||||
			px = ax - 1 + bx;
 | 
			
		||||
			if (!window_copy_search_compare(gd, px, py, sgd, bx))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user