mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-26 11:10:58 +00:00 
			
		
		
		
	Fix bug with __sig_tramp() + sigaltstack()
This commit is contained in:
		
							parent
							
								
									49b0eaa69f
								
							
						
					
					
						commit
						b81a1bd9a8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -259,8 +259,10 @@ static textwindows int __sig_killer(struct PosixThread *pt, int sig, int sic) { | |||
|   if (__sig_should_use_altstack(flags, pt->tib)) { | ||||
|     sp = (uintptr_t)pt->tib->tib_sigstack_addr + pt->tib->tib_sigstack_size; | ||||
|   } else { | ||||
|     sp = (nc.Rsp - 128 - sizeof(struct SignalFrame)) & -16; | ||||
|     sp = nc.Rsp; | ||||
|   } | ||||
|   sp -= sizeof(struct SignalFrame); | ||||
|   sp &= -16; | ||||
|   struct SignalFrame *sf = (struct SignalFrame *)sp; | ||||
|   _ntcontext2linux(&sf->ctx, &nc); | ||||
|   bzero(&sf->si, sizeof(sf->si)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue