- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for Negative (0.38 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
} /** * Test validation of negative buffer sizes. */ @Test public void testNegativeBufferSizes() { byte[] buffer = createBasicNegotiateResponseBuffer(); // Test negative maxReadSize SMBUtil.writeInt4(1024 * 1024, buffer, 28); // 1MB transact - valid SMBUtil.writeInt4(-1, buffer, 32); // Negative read sizeRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/archive/tar/strconv.go
// This function may return negative numbers. // If parsing fails or an integer overflow occurs, err will be set. func (p *parser) parseNumeric(b []byte) int64 { // Check for base-256 (binary) format first. // If the first bit is set, then all following bits constitute a two's // complement encoded number in big-endian byte order. if len(b) > 0 && b[0]&0x80 != 0 { // Handling negative numbers relies on the following identity:
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Sep 08 17:08:20 UTC 2025 - 9.1K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
bufferOverflowsPrevented.incrementAndGet(); throw new SmbException("Negative offset: " + offset); } if (length < 0) { failedValidations.incrementAndGet(); bufferOverflowsPrevented.incrementAndGet(); throw new SmbException("Negative length: " + length); } // Check for integer overflow
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/main/java/jcifs/util/InputValidator.java
*/ public static void validateBufferSize(int size, int maxSize, String fieldName) { if (size < 0) { throw new IllegalArgumentException(fieldName + " size cannot be negative: " + size); } if (size > maxSize) { throw new IllegalArgumentException(fieldName + " size exceeds maximum (" + maxSize + "): " + size); } } /**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/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
@Test @DisplayName("Should handle negative offset in verify method") void testVerifyNegativeOffset() { byte[] data = new byte[128]; boolean result = digest.verify(data, -1, 100, 0, response); assertFalse(result, "Should return false for negative offset"); } @Test @DisplayName("Should handle negative length in verify method")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
} if (securityBufferOffset < 0) { throw new SMBProtocolDecodingException("Invalid security buffer offset: " + securityBufferOffset + " (must be non-negative)"); } final int hdrStart = getHeaderStart(); if (securityBufferLength > 0) { // Validate that security buffer doesn't exceed available dataRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/BloomFilter.java
/** * Identifier used to encode this strategy, when marshalled as part of a BloomFilter. Only * values in the [-128, 127] range are valid for the compact serial form. Non-negative values * are reserved for enums defined in BloomFilterStrategies; negative values are reserved for any * custom, stateful strategy we may define (e.g. any kind of strategy that would depend on user * input). */ int ordinal(); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java
assertEquals(0.0f, elevateWord.getBoost(), 0.001f); } @Test public void testConstructorWithNegativeBoost() { // Test constructor with negative boost String word = "negative boost"; float boost = -1.5f; List<String> readings = Arrays.asList("reading1"); List<String> fields = Arrays.asList("field1"); List<String> tags = Arrays.asList("tag1");
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 16K bytes - Viewed (0) -
src/bufio/bufio.go
ErrInvalidUnreadRune = errors.New("bufio: invalid use of UnreadRune") ErrBufferFull = errors.New("bufio: buffer full") ErrNegativeCount = errors.New("bufio: negative count") ) // Buffered input. // Reader implements buffering for an io.Reader object. // A new Reader is created by calling [NewReader] or [NewReaderSize];
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 22K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
throw new IllegalArgumentException("Data buffer cannot be null"); } if (offset < 0 || length < 0) { throw new IllegalArgumentException("Offset and length must be non-negative"); } if (offset + length > data.length) { throw new IllegalArgumentException("Offset + length exceeds data buffer size"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0)