mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 17:52:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/gorilla/websocket from 1.5.1 to 1.5.2 (#2987)
Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.1 to 1.5.2. - [Release notes](https://github.com/gorilla/websocket/releases) - [Commits](https://github.com/gorilla/websocket/compare/v1.5.1...v1.5.2) --- updated-dependencies: - dependency-name: github.com/gorilla/websocket dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								12c406d968
							
						
					
				
			
			
				commit
				
					
						a687f0634c
					
				
			
		
					 15 changed files with 584 additions and 146 deletions
				
			
		
							
								
								
									
										4
									
								
								vendor/github.com/gorilla/websocket/mask.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/gorilla/websocket/mask.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -9,7 +9,6 @@ package websocket | |||
| 
 | ||||
| import "unsafe" | ||||
| 
 | ||||
| // #nosec G103 -- (CWE-242) Has been audited | ||||
| const wordSize = int(unsafe.Sizeof(uintptr(0))) | ||||
| 
 | ||||
| func maskBytes(key [4]byte, pos int, b []byte) int { | ||||
|  | @ -23,7 +22,6 @@ func maskBytes(key [4]byte, pos int, b []byte) int { | |||
| 	} | ||||
| 
 | ||||
| 	// Mask one byte at a time to word boundary. | ||||
| 	//#nosec G103 -- (CWE-242) Has been audited | ||||
| 	if n := int(uintptr(unsafe.Pointer(&b[0]))) % wordSize; n != 0 { | ||||
| 		n = wordSize - n | ||||
| 		for i := range b[:n] { | ||||
|  | @ -38,13 +36,11 @@ func maskBytes(key [4]byte, pos int, b []byte) int { | |||
| 	for i := range k { | ||||
| 		k[i] = key[(pos+i)&3] | ||||
| 	} | ||||
| 	//#nosec G103 -- (CWE-242) Has been audited | ||||
| 	kw := *(*uintptr)(unsafe.Pointer(&k)) | ||||
| 
 | ||||
| 	// Mask one word at a time. | ||||
| 	n := (len(b) / wordSize) * wordSize | ||||
| 	for i := 0; i < n; i += wordSize { | ||||
| 		//#nosec G103 -- (CWE-242) Has been audited | ||||
| 		*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&b[0])) + uintptr(i))) ^= kw | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue