Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 82 for BOOM (0.19 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/asan2_fail.go

      }
      return p;
    }
    */
    import "C"
    import (
    	"fmt"
    	"unsafe"
    )
    
    func main() {
    	a := C.f()
    	q5 := (*C.int)(unsafe.Add(unsafe.Pointer(a), 4*5))
    	// Access to C pointer out of bounds.
    	*q5 = 100 // BOOM
    	// We shouldn't get here; asan should stop us first.
    	fmt.Printf("q5: %d, %x\n", *q5, q5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 616 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/asan_unsafe_fail3.go

    func main() {
    	a := 1
    	b := 2
    	// The local variables.
    	// When -asan is enabled, the unsafe.Pointer(&a) conversion is escaping.
    	var p *int = (*int)(unsafe.Add(unsafe.Pointer(&a), 1*unsafe.Sizeof(int(1))))
    	*p = 20 // BOOM
    	d := a + b
    	fmt.Println(d)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 457 bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy

            buildFile << """
                class BrokenSerializable implements java.io.Serializable {
                    private Object writeReplace() {
                        throw new RuntimeException("BOOM")
                    }
                }
    
                class BrokenTaskType extends DefaultTask {
                    final prop = new BrokenSerializable()
                }
    
                task broken(type: BrokenTaskType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/asan1_fail.go

    int* test() {
     p = (int *)malloc(2 * sizeof(int));
     free(p);
     return p;
    }
    */
    import "C"
    import "fmt"
    
    func main() {
    	// C passes Go an invalid pointer.
    	a := C.test()
    	// Use after free
    	*a = 2 // BOOM
    	// We shouldn't get here; asan should stop us first.
    	fmt.Println(*a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 500 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/asan_unsafe_fail1.go

    //go:noinline
    func add(a1, b1 int) int {
    	// The arguments.
    	// When -asan is enabled, unsafe.Pointer(&a1) conversion is escaping.
    	var p *int = (*int)(unsafe.Add(unsafe.Pointer(&a1), 1*unsafe.Sizeof(int(1))))
    	*p = 10 // BOOM
    	return a1 + b1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 528 bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/ForkingTestClassProcessorTest.groovy

                addUnrecoverableErrorHandler(_) >> { args -> handler = args[0] }
                addOutgoing(_) >> Stub(RemoteTestClassProcessor)
            }
    
            when:
            def unexpectedException = new Throwable('BOOM!')
            handler.execute(unexpectedException)
    
            and:
            processor.stop()
    
            then:
            def e = thrown(DefaultMultiCauseException)
            e.causes.contains(unexpectedException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            buildFile """
                task cacheable(type: Cacheable) {
                    doLast {
                        throw new GradleException("boom")
                    }
                }
            """
            when:
            withBuildCache().fails "cacheable"
            failure.assertHasCause("boom")
            then:
            assertCachingDisabledFor null, null
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/problems/failure/DefaultFailureFactoryTest.groovy

            def factory = new DefaultFailureFactory(StackTraceClassifier.USER_CODE)
    
            def e0 = SimulatedJavaException.simulateDeeperException()
            def e = new RuntimeException("BOOM", e0)
            e0.initCause(e)
            e0.addSuppressed(e)
    
            when:
            def failure = factory.create(e)
            def failureCause = failure.causes[0]
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 06:11:26 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsLifecycleIntegrationTest.groovy

            def initDir = gradleUserHomeDir.createDir('init.d')
            initDir.createFile('broken.gradle') << """
                throw new Exception('BOOM!')
            """
    
            when:
            fails("help")
    
            then:
            oldButRecentlyUsedGradleDist.assertAllDirsExist()
            oldNotRecentlyUsedGradleDist.assertAllDirsExist()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 20 18:54:20 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestFailureProgressEventCrossVersionTest.groovy

                        assert false;
                    }
    
                    @Test
                    public void failWithUnexpectedRuntimeException() {
                        throw new IllegalStateException("Boom!");
                    }
    
                    @Test
                    public void failWithBrokenAssertion() {
                        assertEquals("This should fail.", "myExpectedValue", "myActualValue");
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 22.1K bytes
    - Viewed (0)
Back to top