mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 02:36:18 +08:00 
			
		
		
		
	 15bac71979
			
		
	
	15bac71979
	
	
	
		
			
			- move native backend to pkg/proc/native - move gdbserver backend to pkg/proc/gdbserial - move core dumps backend to pkg/proc/core
		
			
				
	
	
		
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package proc
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestIssue554(t *testing.T) {
 | |
| 	// unsigned integer overflow in proc.(*memCache).contains was
 | |
| 	// causing it to always return true for address 0xffffffffffffffff
 | |
| 	mem := memCache{0x20, make([]byte, 100), nil}
 | |
| 	if mem.contains(0xffffffffffffffff, 40) {
 | |
| 		t.Fatalf("should be false")
 | |
| 	}
 | |
| }
 |