Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 426 for prevent (0.04 seconds)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

    /**
     * Utility class for handling {@link File}.
     * <p>
     * <strong>SECURITY NOTE:</strong> When accepting file paths from untrusted sources,
     * always validate them using {@link #isPathSafe(Path, Path)} to prevent path traversal attacks.
     * Methods that accept path strings do not perform automatic validation to maintain backward compatibility.
     * </p>
     *
     * @author higa
     */
    public abstract class FileUtil {
    
        /**
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  2. src/main/java/jcifs/util/InputValidator.java

     */
    package jcifs.util;
    
    import java.util.regex.Pattern;
    
    /**
     * Comprehensive input validation utility for SMB protocol implementation.
     * Provides validation methods to prevent buffer overflows, injection attacks,
     * and other security vulnerabilities.
     */
    public final class InputValidator {
    
        private InputValidator() {
            // Utility class
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        @Override
        protected void finalize() throws Throwable {
            try {
                // Add null check to prevent NPE if object was not fully constructed
                if (this.usageCount != null && this.usageCount.get() != 0) {
                    log.warn("Tree handle was not properly released, performing emergency cleanup: "
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

       */
      internal val isMultiplexed: Boolean
        get() = http2Connection != null
    
      /** Prevent further exchanges from being created on this connection. */
      override fun noNewExchanges() {
        withLock {
          noNewExchanges = true
        }
        connectionListener.noNewExchanges(this)
      }
    
      /** Prevent this connection from being used for hosts other than the one in [route]. */
      internal fun noCoalescedConnections() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      fun newClientBuilder(): OkHttpClient.Builder = newClient().newBuilder()
    
      @Synchronized private fun addEvent(event: String) {
        if (recordEvents) {
          logger?.info(event)
    
          synchronized(clientEventsList) {
            clientEventsList.add(event)
          }
        }
      }
    
      @Synchronized private fun initUncaughtException(throwable: Throwable) {
        if (uncaughtException == null) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            return new EncryptionResult(ciphertext, authTag);
        }
    
        /**
         * Perform constant-time encryption to prevent timing attacks
         */
        private byte[] performConstantTimeEncryption(Cipher cipher, byte[] message) throws Exception {
            // Pad to fixed block size to prevent timing leaks
            int blockSize = cipher.getBlockSize();
            if (blockSize == 0)
                blockSize = 16; // GCM mode
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Booleans.java

        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Boolean)
              && Booleans.indexOf(array, (Boolean) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Boolean) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. guava/src/com/google/common/primitives/Booleans.java

        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Boolean)
              && Booleans.indexOf(array, (Boolean) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Boolean) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Chars.java

        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Character)
              && Chars.indexOf(array, (Character) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Character) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/Shorts.java

        }
    
        @Override
        public boolean contains(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Short) && Shorts.indexOf(array, (Short) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Short) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
Back to Top