mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibJS: Check the ASAN fake stack for heap pointers when ASAN is enabled
This is a similar strategy to what v8 does. Use the ASAN API function __asan_addr_is_in_fake_stack to check any fake stack frames associated with each stack address we scan. This fully allows running test-js -g with the option detect_stack_use_after_return turned on.
This commit is contained in:
		
							parent
							
								
									7d71acf1bb
								
							
						
					
					
						commit
						31440687a3
					
				
					 2 changed files with 49 additions and 20 deletions
				
			
		|  | @ -85,6 +85,7 @@ private: | |||
| 
 | ||||
|     void gather_roots(HashTable<Cell*>&); | ||||
|     void gather_conservative_roots(HashTable<Cell*>&); | ||||
|     void gather_asan_fake_stack_roots(HashTable<FlatPtr>&, FlatPtr); | ||||
|     void mark_live_cells(HashTable<Cell*> const& live_cells); | ||||
|     void finalize_unmarked_cells(); | ||||
|     void sweep_dead_cells(bool print_report, Core::ElapsedTimer const&); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Kaster
						Andrew Kaster