- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 45 for unsafeptr (0.19 sec)
-
src/cmd/vet/vet_test.go
"directive", "httpresponse", "lostcancel", "method", "nilfunc", "print", "shift", "slog", "structtag", "testingpkg", // "testtag" has its own test "unmarshal", "unsafeptr", "unused", } { pkg := pkg t.Run(pkg, func(t *testing.T) { t.Parallel() // Skip cgo test on platforms without cgo. if pkg == "cgo" && !cgoEnabled(t) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/smiley.json
{"Action":"output","Test":"Test☺☹/1","Output":" --- PASS: Test☺☹/1 (0.07s)\n"} {"Action":"output","Test":"Test☺☹/1","Output":" vet_test.go:114: φιλεσ: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"} {"Action":"pass","Test":"Test☺☹/1"} {"Action":"output","Test":"Test☺☹/7","Output":" --- PASS: Test☺☹/7 (0.19s)\n"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 12.4K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
// This is OK as long as the packages that are farther down the // dependency tree turn on *more* analysis, as here. // (The unsafeptr check does not write any facts for use by // later vet runs, nor does unreachable.) if a.Package.Goroot && !VetExplicit && VetTool == "" { // Turn off -unsafeptr checks. // There's too much unsafe.Pointer code // that vet doesn't like in low-level packages
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/cmd/compile/internal/types/universe.go
AnyType.SetUnderlying(NewInterface(nil)) ResumeCheckSize() Types[TUNSAFEPTR] = defBasic(TUNSAFEPTR, UnsafePkg, "Pointer") Types[TBLANK] = newType(TBLANK) Types[TNIL] = newType(TNIL) // simple aliases SimType[TMAP] = TPTR SimType[TCHAN] = TPTR SimType[TFUNC] = TPTR SimType[TUNSAFEPTR] = TPTR for et := TINT8; et <= TUINT64; et++ { IsInt[et] = true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/compile/internal/walk/convert.go
case ir.OCONVNOP: n := n.(*ir.ConvExpr) if n.X.Type().IsUnsafePtr() { n.X = cheapExpr(n.X, init) originals = append(originals, typecheck.ConvNop(n.X, types.Types[types.TUNSAFEPTR])) } } } walk(n.X) cheap := cheapExpr(n, init) slice := typecheck.MakeDotArgs(base.Pos, types.NewSlice(types.Types[types.TUNSAFEPTR]), originals) slice.SetEsc(ir.EscNone)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 17:28:22 UTC 2023 - 18.2K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
// "-lostcancel", // "-methods", "-nilfunc", "-printf", // "-rangeloops", // "-shift", "-slog", "-stringintconv", // "-structtags", // "-tests", // "-unreachable", // "-unsafeptr", // "-unusedresult", } func runTest(ctx context.Context, cmd *base.Command, args []string) { pkgArgs, testArgs = testFlags(args)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/universe.go
okforlen[types.TARRAY] = true okforlen[types.TCHAN] = true okforlen[types.TMAP] = true okforlen[types.TSLICE] = true okforlen[types.TSTRING] = true okforeq[types.TPTR] = true okforeq[types.TUNSAFEPTR] = true okforeq[types.TINTER] = true okforeq[types.TCHAN] = true okforeq[types.TSTRING] = true okforeq[types.TBOOL] = true okforeq[types.TMAP] = true // nil only; refined in typecheck
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/reflect/all_test.go
{"pointer", ValueOf(ptr), unsafe.Pointer(ptr)}, {"channel", ValueOf(ch), *(*unsafe.Pointer)(unsafe.Pointer(&ch))}, {"map", ValueOf(m), *(*unsafe.Pointer)(unsafe.Pointer(&m))}, {"unsafe.Pointer", ValueOf(unsafePtr), unsafePtr}, {"function", ValueOf(fn), **(**unsafe.Pointer)(unsafe.Pointer(&fn))}, {"slice", ValueOf(slice), unsafe.Pointer(unsafe.SliceData(slice))}, {"string", ValueOf(s), unsafe.Pointer(unsafe.StringData(s))}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/cmd/compile/internal/pkginit/initAsanGlobals.go
ir.NewIndexExpr(base.Pos, globals, ir.NewInt(base.Pos, int64(i))), lname(f)), val) init.Append(typecheck.Stmt(r)) } // globals[i].beg = uintptr(unsafe.Pointer(&n)) c = tconv(typecheck.NodAddr(n), types.Types[types.TUNSAFEPTR]) c = tconv(c, types.Types[types.TUINTPTR]) setField("beg", c, i) // Assign globals[i].size. g := n.(*ir.Name) size := g.Type().Size()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:24 UTC 2023 - 8.7K bytes - Viewed (0) -
platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/PathTraversalCheckerTest.groovy
setup: assumeFalse( ": is only unsafe on Windows systems", unsafePath.contains(':') && !isWindows() ) expect: isUnsafePathName(unsafePath) !isUnsafePathName(safePath) where: unsafePath | safePath "/" | "foo/" "\\" | "foo\\" "/foo" | "foo"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 1.7K bytes - Viewed (0)