mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* iseq.c (rb_iseq_clone): should preserve cref_stack link.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									199a95775b
								
							
						
					
					
						commit
						96765d153f
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Mon Aug 11 20:37:05 2008  Yukihiro Matsumoto  <matz@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* iseq.c (rb_iseq_clone): should preserve cref_stack link.
 | 
			
		||||
 | 
			
		||||
Mon Aug 11 20:27:12 2008  Yukihiro Matsumoto  <matz@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								iseq.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								iseq.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1246,6 +1246,9 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
 | 
			
		|||
    }
 | 
			
		||||
    if (newcbase) {
 | 
			
		||||
	iseq1->cref_stack = NEW_BLOCK(newcbase);
 | 
			
		||||
	if (iseq0->cref_stack->nd_next) {
 | 
			
		||||
	    iseq1->cref_stack->nd_next = iseq0->cref_stack->nd_next;
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return newiseq;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue