Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 100 for safely (0.04 sec)

  1. cmd/postpolicyform.go

    )
    
    // toString - Safely convert interface to string without causing panic.
    func toString(val any) string {
    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val any) string {
    	return strings.ToLower(toString(val))
    }
    
    // toInteger _ Safely convert interface to integer without causing panic.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ServerResponseValidator.java

                throw new SmbException("Buffer access out of bounds");
            }
        }
    
        /**
         * Safely add integers checking for overflow
         *
         * @param a first value
         * @param b second value
         * @return sum
         * @throws SmbException if overflow would occur
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/EmptyIteratorTest.java

                    count++;
                    if (count > 10)
                        break; // Safety check
                }
                assertEquals(0, count, "No iterations should occur for empty iterator");
            }, "EmptyIterator should work with manual iteration");
        }
    
        @Test
        @DisplayName("EmptyIterator should handle concurrent access safely")
        void testConcurrentAccess() throws InterruptedException, CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // Then
                assertEquals(4, bytesRead);
            }
    
            @Test
            @DisplayName("Should handle concurrent access safely")
            void testConcurrentAccess() throws InterruptedException {
                // Given
                byte[] buffer1 = new byte[10];
                byte[] buffer2 = new byte[10];
                SMBUtil.writeInt2(4, buffer1, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. docs/resiliency/resiliency-tests.sh

    function test_resiliency_success_with_disks_offline() {
    	echo
    	echo -e "${GREEN}Running test_resiliency_success_with_disks_offline ...${NC}"
    	# There are 8 disks on each node with EC:4 and two erasure sets.
    	# We should be able to safely suspend one disk per set from each server.
    	docker exec resiliency-minio1-1 /bin/sh -c "mv /data1/.minio.sys /data1/.minio.bkp && touch /data1/.minio.sys"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Dec 21 04:24:45 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessClient.java

            String resourceName = notification.getResourceName();
            String shareName = registration.getShareName();
    
            // Match by share name or server address, safely handling nulls
            boolean shareMatch = resourceName != null && shareName != null && resourceName.equalsIgnoreCase(shareName);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Then
                assertEquals(4, bytesRead);
            }
    
            @Test
            @DisplayName("Should handle concurrent access safely")
            void testConcurrentAccess() throws InterruptedException {
                // Given
                int threadCount = 10;
                Thread[] threads = new Thread[threadCount];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/BaseContextTest.java

            // Then
            assertTrue(context instanceof AbstractCIFSContext, "BaseContext should extend AbstractCIFSContext");
        }
    
        @Test
        @DisplayName("Context should handle concurrent access safely")
        void testConcurrentAccess() throws InterruptedException {
            // Given
            final int threadCount = 10;
            final Thread[] threads = new Thread[threadCount];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            assertTrue(nonce1.length > 0, "Secure nonce should have proper length");
        }
    
        @Test
        @DisplayName("Should handle concurrent secure nonce generation safely")
        void testConcurrentSecureNonceGeneration() throws InterruptedException {
            // Given
            Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpURLConnection.java

     * credentials. Authenticated connections can/will be reused.
     *
     * @deprecated This is broken by design, even a possible vulnerability. Deprecation is conditional on whether future JDK
     *             versions will allow to do this safely.
     */
    @Deprecated
    public class NtlmHttpURLConnection extends HttpURLConnection {
    
        private static final Logger log = LoggerFactory.getLogger(NtlmHttpURLConnection.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top