Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for MaxInt64 (0.08 sec)

  1. src/archive/zip/reader.go

    		if err == nil && p >= 0 {
    			directoryEndOffset = p
    			err = readDirectory64End(r, p, d)
    		}
    		if err != nil {
    			return nil, 0, err
    		}
    	}
    
    	maxInt64 := uint64(1<<63 - 1)
    	if d.directorySize > maxInt64 || d.directoryOffset > maxInt64 {
    		return nil, 0, ErrFormat
    	}
    
    	baseOffset = directoryEndOffset - int64(d.directorySize) - int64(d.directoryOffset)
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    		wantSize  int64
    		wantName  string
    		wantErr   error
    	}{{
    		inputHdrs: nil,
    		wantErr:   nil,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: strconv.FormatInt(math.MaxInt64, 10),
    			paxGNUSparseMap:       "0,1,2,3",
    		},
    		wantErr: ErrHeader,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: "4\x00",
    			paxGNUSparseMap:       "0,1,2,3",
    		},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    		return false
    	}
    	var pre sparseEntry
    	for _, cur := range sp {
    		switch {
    		case cur.Offset < 0 || cur.Length < 0:
    			return false // Negative values are never okay
    		case cur.Offset > math.MaxInt64-cur.Length:
    			return false // Integer overflow with large length
    		case cur.endOffset() > size:
    			return false // Region extends beyond the actual size
    		case pre.endOffset() > cur.Offset:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    		}
    		if _, err := io.Copy(io.Discard, r); err != nil {
    			t.Fatalf("unexpected error: %v", err)
    		}
    	}
    }
    
    func TestBaseOffsetPlusOverflow(t *testing.T) {
    	// directoryOffset > maxInt64 && size-directoryOffset < 0
    	data := []byte{
    		0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    		0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    		0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg math, const Log2E ideal-float
    pkg math, const MaxFloat32 ideal-float
    pkg math, const MaxFloat64 ideal-float
    pkg math, const MaxInt16 ideal-int
    pkg math, const MaxInt32 ideal-int
    pkg math, const MaxInt64 ideal-int
    pkg math, const MaxInt8 ideal-int
    pkg math, const MaxUint16 ideal-int
    pkg math, const MaxUint32 ideal-int
    pkg math, const MaxUint64 ideal-int
    pkg math, const MaxUint8 ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  6. api/go1.1.txt

    pkg math, const MaxInt16 = 32767
    pkg math, const MaxInt32 = 2147483647
    pkg math, const MaxInt64 = 9223372036854775807
    pkg math, const MaxInt8 = 127
    pkg math, const MaxUint16 = 65535
    pkg math, const MaxUint32 = 4294967295
    pkg math, const MaxUint64 = 18446744073709551615
    pkg math, const MaxUint8 = 255
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top