Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for encodeThrowsWhenDstIndexCausesOverflow (1.06 sec)

  1. src/test/java/jcifs/EncodableTest.java

                    "System.arraycopy should throw for insufficient destination space");
        }
    
        @Test
        @DisplayName("encode() throws when dstIndex causes overflow")
        void encodeThrowsWhenDstIndexCausesOverflow() {
            byte[] src = makeSeq(5);
            Encodable enc = new ByteEncodable(src, 0, 5);
            byte[] dst = new byte[6]; // size is 6, but index 2 + len 5 -> overflow
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top