Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for suspicious (0.38 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go

    			continue
    		}
    
    		switch key {
    		case "xml":
    			// If the first or last character in the XML tag is a space, it is
    			// suspicious.
    			if strings.Trim(value, " ") != value {
    				return errTagValueSpace
    			}
    
    			// If there are multiple spaces, they are suspicious.
    			if strings.Count(value, " ") > 1 {
    				return errTagValueSpace
    			}
    
    			// If there is no comma, skip the rest of the checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/shift/shift.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the suspicious shift checker.
    
    package shift
    
    func ShiftTest() {
    	var i8 int8
    	_ = i8 << 7
    	_ = (i8 + 1) << 8 // ERROR ".i8 . 1. .8 bits. too small for shift of 8"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 358 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    #
    # As of 1.21 we continue to use internal linking for programs whose
    # CGO use comes only from stdlib packages in the absence of any flag
    # funny business, however if the Go command sees flags that may be suspicious,
    # it signals the Go linker to invoke the external linker.
    
    # The next few tests run builds passing "-n" to the Go command, then
    # checking the output to see if the Go command is trying to pass a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/support/ZipTest.kt

        @Test
        fun `unzip fails on path traversal attempts`() {
    
            val maliciousZip = file("malicious.zip").apply {
                ZipOutputStream(outputStream()).use { zip ->
                    val content = "suspicious".toByteArray()
                    zip.putNextEntry(ZipEntry("path/../../traversal.txt".replace('/', File.separatorChar)).apply { size = content.size.toLong() })
                    zip.write(content)
                    zip.closeEntry()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/ir/.clang-tidy

            bugprone-macro-repeated-side-effects,
            bugprone-misplaced-widening-cast,
            bugprone-move-forwarding-reference,
            bugprone-multiple-statement-macro,
            bugprone-suspicious-semicolon,
            bugprone-swapped-arguments,
            bugprone-terminating-continue,
            bugprone-unused-raii,
            bugprone-unused-return-value,
            misc-redundant-expression,
            misc-static-assert,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/help.go

    	"fmt"
    	"log"
    	"os"
    	"sort"
    	"strings"
    
    	"golang.org/x/tools/go/analysis"
    )
    
    const help = `PROGNAME is a tool for static analysis of Go programs.
    
    PROGNAME examines Go source code and reports suspicious constructs,
    such as Printf calls whose arguments do not align with the format
    string. It uses heuristics that do not guarantee all reports are
    genuine problems, but it can find errors not caught by the compilers.
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 08 01:33:44 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/vet/doc.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Vet examines Go source code and reports suspicious constructs, such as Printf
    calls whose arguments do not align with the format string. Vet uses heuristics
    that do not guarantee all reports are genuine problems, but it can find errors
    not caught by the compilers.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 00:17:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. src/runtime/race/testdata/map_test.go

    	m[1] = 1
    	<-ch
    }
    
    func TestNoRaceMapRangeRange(t *testing.T) {
    	m := make(map[int]int)
    	// now the map is not empty and range triggers an event
    	// should work without this (as in other tests)
    	// so it is suspicious if this test passes and others don't
    	m[0] = 0
    	ch := make(chan bool, 1)
    	go func() {
    		for range m {
    		}
    		ch <- true
    	}()
    	for range m {
    	}
    	<-ch
    }
    
    func TestRaceMapLen(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  9. pilot/pkg/xds/deltatest.go

    	if current == nil {
    		log.Debugf("ADS:%s: resources initialized", v3.GetShortType(w.TypeUrl))
    		return
    	}
    	if deltaRes == nil && deleted == nil && len(sotwRes) == 0 {
    		// TODO: it suspicious full is never nil - are there case where we should be deleting everything?
    		// Both SotW and Delta did not respond, nothing to compare
    		return
    	}
    	newByName := slices.GroupUnique(sotwRes, (*discovery.Resource).GetName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                        .filterNot { it.trim().startsWith("//") }
                        .joinToString("\n")
                    if (text.contains(content) && exceptions.all { !text.contains(it) }) {
                        println("Found suspicious test file: $file")
                        return true
                    }
                }
            }
            return false
        }
    
        @Test
        fun allSubprojectsDefineTheirFunctionTestPropertyCorrectly() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 10:00:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top