Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for malformDataSigV4 (0.14 sec)

  1. cmd/test-utils_test.go

    		bytes.NewReader(bytes.Join([][]byte{newChunkHdr, newChunk[:len(newChunk)/2]},
    			[]byte(""))),
    	)
    	return newReq, nil
    }
    
    // Malform data given a request signed using streaming signature V4.
    func malformDataSigV4(req *http.Request, newByte byte) (*http.Request, error) {
    	bufReader := bufio.NewReader(req.Body)
    	hexChunkSize, chunkSignature, err := readChunkLine(bufReader)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    			req.Header.Del("Authorization")
    		}
    		switch testCase.fault {
    		case malformedEncoding:
    			req, err = malformChunkSizeSigV4(req, testCase.chunkSize-1)
    		case signatureMismatch:
    			req, err = malformDataSigV4(req, 'z')
    		case unexpectedEOF:
    			req, err = truncateChunkByHalfSigv4(req)
    		case tooBigDecodedLength:
    			// Set decoded length to a large value out of int64 range to simulate parse failure.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top