mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Remove unnecessary memory buffer alloc unsets
This define is turned off by default
This commit is contained in:
		
							parent
							
								
									1e56d2c3de
								
							
						
					
					
						commit
						4b3a45e190
					
				@ -889,7 +889,6 @@ component_test_check_params_functionality () {
 | 
				
			|||||||
    scripts/config.pl full # includes CHECK_PARAMS
 | 
					    scripts/config.pl full # includes CHECK_PARAMS
 | 
				
			||||||
    # Make MBEDTLS_PARAM_FAILED call mbedtls_param_failed().
 | 
					    # Make MBEDTLS_PARAM_FAILED call mbedtls_param_failed().
 | 
				
			||||||
    scripts/config.pl unset MBEDTLS_CHECK_PARAMS_ASSERT
 | 
					    scripts/config.pl unset MBEDTLS_CHECK_PARAMS_ASSERT
 | 
				
			||||||
    scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
 | 
					 | 
				
			||||||
    # Only build and run tests. Do not build sample programs, because
 | 
					    # Only build and run tests. Do not build sample programs, because
 | 
				
			||||||
    # they don't have a mbedtls_param_failed() function.
 | 
					    # they don't have a mbedtls_param_failed() function.
 | 
				
			||||||
    make CC=gcc CFLAGS='-Werror -O1' lib test
 | 
					    make CC=gcc CFLAGS='-Werror -O1' lib test
 | 
				
			||||||
@ -1111,7 +1110,6 @@ component_test_m32_o0 () {
 | 
				
			|||||||
    # Build once with -O0, to compile out the i386 specific inline assembly
 | 
					    # Build once with -O0, to compile out the i386 specific inline assembly
 | 
				
			||||||
    msg "build: i386, make, gcc -O0 (ASan build)" # ~ 30s
 | 
					    msg "build: i386, make, gcc -O0 (ASan build)" # ~ 30s
 | 
				
			||||||
    scripts/config.pl full
 | 
					    scripts/config.pl full
 | 
				
			||||||
    scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # slow and makes ASan mostly ineffective
 | 
					 | 
				
			||||||
    make CC=gcc CFLAGS='-O0 -Werror -Wall -Wextra -m32 -fsanitize=address' LDFLAGS='-m32 -fsanitize=address'
 | 
					    make CC=gcc CFLAGS='-O0 -Werror -Wall -Wextra -m32 -fsanitize=address' LDFLAGS='-m32 -fsanitize=address'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    msg "test: i386, make, gcc -O0 (ASan build)"
 | 
					    msg "test: i386, make, gcc -O0 (ASan build)"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user