- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 791 for Prevent (0.06 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
}); assertTrue(exception.getMessage().contains("Invalid negotiate context count: 65535")); } /** * Test validation of excessive buffer sizes to prevent resource exhaustion. */ @Test public void testExcessiveBufferSizes() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Test excessive maxTransactSize (> 16MB)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/Cache.java
* for an RPC may wait for a similar call that requests a long timeout, or a call by an * unprivileged user may return a resource accessible only to a privileged user making a similar * call. To prevent this problem, create a key object that includes all values that affect the * result of the query. Or use {@code LoadingCache.get(K)}, which lacks the ability to refer to * state other than that in the key. *Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java
ignored); } notifyFailed(t); // requireNonNull is safe now, just as it was above. requireNonNull(runningTask).cancel(false); // prevent future invocations. } finally { lock.unlock(); } } } private final Runnable task = new Task(); @Override protected final void doStart() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.7K bytes - Viewed (0) -
src/main/java/jcifs/Config.java
* {@link jcifs.context.SingletonContext#getInstance()} * witch is initialized using system properties. * */ public class Config { /** * Private constructor to prevent instantiation of this utility class. */ private Config() { // Utility class - not instantiable } private static final Logger log = LoggerFactory.getLogger(Config.class); /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/util/SimpleCircuitBreaker.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Simplified circuit breaker implementation for SMB operations. * Thread-safe and lock-free implementation to prevent cascading failures. * * Features: * - Simple state management (CLOSED, OPEN, HALF_OPEN) * - Lock-free atomic operations * - Configurable thresholds and timeouts * - No complex dependencies */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
package jcifs.util; import java.util.concurrent.atomic.AtomicLong; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.smb.SmbException; /** * Validator for SMB server responses to prevent buffer overflow and injection attacks. * * Features: * - Buffer bounds checking * - Integer overflow prevention * - Size validation * - Protocol compliance checking * - Malformed response detection */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Expected - exception is thrown but not counted as failure } } // NOTE: Implementation behavior - custom predicate may not prevent all state changes // Skipping assertions that assume non-critical errors don't affect circuit state // as the actual implementation may handle this differentlyRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SpnegoContext.java
*/ @Override public int getFlags() { return this.mechContext.getFlags(); } @Override public boolean isSupported(final ASN1ObjectIdentifier mechanism) { // prevent nesting return false; } /** * Determines what mechanism is being used for this context. * * @return the Oid of the mechanism being used */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
// Could attempt re-registration here } } /** * Handle a witness event * * @param notification the witness notification */ private void handleWitnessEvent(WitnessNotification notification) { log.info("Handling witness event: {} for resource: {}", notification.getEventType(), notification.getResourceName());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
cmd/sftp-server-driver.go
xioutil "github.com/minio/minio/internal/ioutil" "github.com/minio/pkg/v3/mimedb" "github.com/pkg/sftp" "golang.org/x/crypto/ssh" ) // Maximum write offset for incoming SFTP blocks. // Set to 100MiB to prevent hostile DOS attacks. const ftpMaxWriteOffset = 100 << 20 type sftpDriver struct { permissions *ssh.Permissions endpoint string remoteIP string } //msgp:ignore sftpMetrics
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Feb 10 16:35:49 UTC 2025 - 11.6K bytes - Viewed (0)