Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 332 for bounds (0.04 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

            assertThrows(EOFException.class, () -> {
                ASN1Util.readLength(s, 100, false);
            });
        }
    
        @Test
        void testReadLength_OutOfBounds() {
            // Length out of bounds
            InputStream s = new ByteArrayInputStream(new byte[] { (byte) 0x81, (byte) 0xFF }); // length 255
            assertThrows(IOException.class, () -> {
                ASN1Util.readLength(s, 200, false); // limit 200
            });
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                when(mockReferral.getNode()).thenReturn("\\server\\share\\path");
    
                String reqPath = "\\\\server\\share\\path\\file";
                // Ensure consumed is within bounds to avoid StringIndexOutOfBoundsException
                consumed = Math.min(consumed, reqPath.length());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/ASN1Util.java

            if (length >= limit && !isParsing) // after all we must have read at least 1 byte
            {
                throw new IOException("corrupted stream - out of bounds length found: " + length + " >= " + limit);
            }
    
            return length;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  4. RELEASE.md

        `SparseDenseCwiseMul`
        ([CVE-2021-29567](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29567))
    *   Fixes a heap out of bounds read in `MaxPoolGradWithArgmax`
        ([CVE-2021-29570](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29570))
    *   Fixes a heap out of bounds read in `RequantizationRange`
        ([CVE-2021-29569](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29569))
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (2)
  5. src/test/java/jcifs/SidResolverTest.java

        }
    
        @Test
        void testResolveSidsWithOffsetAndLength_OutOfBounds() throws CIFSException {
            doThrow(new CIFSException("Array index out of bounds")).when(sidResolver)
                    .resolveSids(any(CIFSContext.class), anyString(), any(SID[].class), eq(5), anyInt());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/InputValidatorTest.java

            assertThrows(IllegalArgumentException.class,
                    () -> InputValidator.validateSmb2BufferSize(InputValidator.MAX_SMB2_BUFFER_SIZE + 1, "test"));
        }
    
        @Test
        @DisplayName("Test array bounds validation")
        void testArrayBounds() {
            byte[] src = new byte[100];
            byte[] dst = new byte[100];
    
            assertDoesNotThrow(() -> InputValidator.validateArrayBounds(src, 0, dst, 0, 100));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.h

    //
    // If index is out of bounds, an error code will be set in the status object,
    // and -1 will be returned.
    TF_CAPI_EXPORT extern int64_t TF_DeviceListMemoryBytes(
        const TF_DeviceList* list, int index, TF_Status* status);
    
    // Retrieve the incarnation number of a given device.
    //
    // If index is out of bounds, an error code will be set in the status object,
    // and 0 will be returned.
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

            void testDecodeWithBufferOverflow() {
                assertThrows(SMBProtocolDecodingException.class, () -> testResponse.decode(testBuffer, 250, 10),
                        "Should throw exception when reading beyond buffer bounds");
            }
    
            @Test
            @DisplayName("Should handle zero-length decode")
            void testDecodeWithZeroLength() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            srvsvc.ShareInfo502 info502 = new srvsvc.ShareInfo502();
            info502.security_descriptor = new byte[] { 1, 2, 3, 4 };
            info502.sd_size = 100; // Mismatched size - SecurityDescriptor will try to read beyond array bounds
    
            // Replace info field
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
            infoField.setAccessible(true);
            infoField.set(msrpcShareGetInfo, info502);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java

        void testMethodsWithIndicesBeyondBuffer() {
            // Arrange
            byte[] buffer = new byte[10];
            int beyondIndex = 20;
    
            // Act & Assert
            // These methods don't validate buffer bounds, so they return 0
            assertEquals(0, response.writeSetupWireFormat(buffer, beyondIndex));
            assertEquals(0, response.writeParametersWireFormat(buffer, beyondIndex));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
Back to top