Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 64 of 64 for ArrayIndexOutOfBoundsException (0.15 seconds)

  1. android/guava/src/com/google/common/base/Strings.java

        int len = string.length();
        long longSize = (long) len * (long) count;
        int size = (int) longSize;
        if (size != longSize) {
          throw new ArrayIndexOutOfBoundsException("Required array size too large: " + longSize);
        }
    
        char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/primitives/UnsignedLongs.java

         * a number. Does not verify whether supplied radix is valid, passing an invalid radix will give
         * undefined results or an ArrayIndexOutOfBoundsException.
         */
        static boolean overflowInParse(long current, int digit, int radix) {
          if (current >= 0) {
            if (current < maxValueDivs[radix]) {
              return false;
            }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 17.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            headerStartField.setAccessible(true);
            headerStartField.set(response, 0);
    
            // When & Then - should throw when trying to read beyond buffer
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readBytesWireFormat(smallBuffer, bodyStart));
        }
    
        @Test
        @DisplayName("Should handle Reserved2 field correctly")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // Given
                byte[] buffer = new byte[59]; // One byte too small
                SMBUtil.writeInt2(60, buffer, 0);
    
                // When & Then
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                    response.readBytesWireFormat(buffer, 0);
                });
            }
        }
    
        @Nested
        @DisplayName("SmbBasicFileInfo Interface Tests")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 26.9K bytes
    - Click Count (0)
Back to Top