mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fix overflow exposed in #880
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									962979b09c
								
							
						
					
					
						commit
						b70f1f0319
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -122,7 +122,8 @@ namespace smt {
 | 
			
		|||
                SASSERT(n <= lvl);
 | 
			
		||||
                unsigned new_lvl = lvl - n;
 | 
			
		||||
                unsigned old_sz = m_scopes[new_lvl];
 | 
			
		||||
                for (unsigned i = cur_sz - 1; i >= old_sz; i--) {
 | 
			
		||||
                for (unsigned i = cur_sz; i > old_sz; ) {
 | 
			
		||||
                    --i;
 | 
			
		||||
                    expr * key = m_assumptions[i].get();
 | 
			
		||||
                    SASSERT(m_name2assertion.contains(key));
 | 
			
		||||
                    expr * value = m_name2assertion.find(key);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue