- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for Overflow (0.06 sec)
-
src/main/java/jcifs/util/InputValidator.java
* * @param a first operand * @param b second operand * @return sum of a and b * @throws ArithmeticException if overflow occurs */ public static int safeAdd(int a, int b) { validateIntegerAddition(a, b, "Addition"); return a + b; } /** * Safe integer multiplication with overflow check * * @param a first operand
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
integerOverflowsPrevented.incrementAndGet(); log.warn("Integer overflow in addition: {} + {} = {}", a, b, result); throw new SmbException("Integer overflow detected"); } return (int) result; } /** * Safely multiply integers checking for overflow * * @param a first value * @param b second value * @return product
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
// overflow, return. return naiveSum; } // we did over/under flow, if the sign is negative we should return MAX otherwise MIN return Long.MAX_VALUE + ((naiveSum >>> (Long.SIZE - 1)) ^ 1); } /** * Returns the difference of {@code a} and {@code b} unless it would overflow or underflow in
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 29 16:20:07 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
import jcifs.internal.util.SMBUtil; /** * Security-focused test cases for Smb2NegotiateResponse input validation. * Tests various malformed input scenarios to ensure proper validation and * protection against buffer overflow, integer overflow, and other attacks. */ public class Smb2NegotiateResponseInputValidationTest { private Configuration mockConfig; private Smb2NegotiateResponse response; @BeforeEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/Collections2Test.java
} public void testOrderedPermutationSetSizeOverflow() { // 12 elements won't overflow assertEquals( 479001600 /*12!*/, Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)) .size()); // 13 elements overflow an int assertEquals( Integer.MAX_VALUE,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
verifyNoMoreInteractions(mockBuffer); } @Test @DisplayName("Should encode masked overflow value correctly") void testEncodeMaskedValue() throws NdrException { // Given: NdrShort with overflow value that gets masked int inputValue = 300; // 300 & 0xFF = 44 NdrShort ndrShort = new NdrShort(inputValue);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheStats.java
* uncached value. This is defined as {@code hitCount + missCount}. * * <p><b>Note:</b> the values of the metrics are undefined in case of overflow (though it is * guaranteed not to throw an exception). If you require specific handling, we recommend * implementing your own stats collector. */ public long requestCount() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
* might not run some of its listeners. The likely result is that the app will hang. (And of * course stack overflows are bad news in general. For example, we may have overflowed in the * middle of defining a class. If so, that class will never be loadable in this process.) The * best we can do (since logging may overflow the stack) is to let the error propagate. Because
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 20 18:03:37 UTC 2025 - 10.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
* might not run some of its listeners. The likely result is that the app will hang. (And of * course stack overflows are bad news in general. For example, we may have overflowed in the * middle of defining a class. If so, that class will never be loadable in this process.) The * best we can do (since logging may overflow the stack) is to let the error propagate. Because
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 20 18:03:37 UTC 2025 - 10.8K bytes - Viewed (0)