mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 28e77cc1c0
			
		
	
	
		28e77cc1c0
		
	
	
	
	
		
			
			As done for memcpy(), also update memset() to use the same tightened compile-time bounds checking under CONFIG_FORTIFY_SOURCE. Signed-off-by: Kees Cook <keescook@chromium.org>
		
			
				
	
	
		
			5 lines
		
	
	
	
		
			137 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
	
		
			137 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0-only
 | |
| #define TEST	\
 | |
| 	memset(instance.buf, 0x42, sizeof(instance.buf) + 1)
 | |
| 
 | |
| #include "test_fortify.h"
 |