mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 18:00:55 -05:00 
			
		
		
		
	Fix buffer overrun in filtering
This commit is contained in:
		@ -144,7 +144,7 @@ void density_est(float4 *pixbuf, float4 *outbuf,
 | 
			
		||||
        de_r[i] = de_g[i] = de_b[i] = de_a[i] = 0.0f;
 | 
			
		||||
    __syncthreads();
 | 
			
		||||
 | 
			
		||||
    for (int imrow = threadIdx.y + W2; imrow < {{info.acc_height}}; imrow += 32)
 | 
			
		||||
    for (int imrow = threadIdx.y + W2; imrow < ({{info.acc_height}} - W2); imrow += 32)
 | 
			
		||||
    {
 | 
			
		||||
        int idx = {{info.acc_stride}} * imrow +
 | 
			
		||||
                + blockIdx.x * 32 + threadIdx.x + W2;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user