Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for minimizeInput (0.22 sec)

  1. src/internal/fuzz/minimize_test.go

    			}
    			mem := &sharedMem{region: make([]byte, 100)} // big enough to hold value and header
    			vals := tc.input
    			success, err := ws.minimizeInput(context.Background(), vals, mem, minimizeArgs{})
    			if !success {
    				t.Errorf("minimizeInput did not succeed")
    			}
    			if err == nil {
    				t.Fatal("minimizeInput didn't provide an error")
    			}
    			if expected := fmt.Sprintf("bad %v", tc.expected[0]); err.Error() != expected {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  2. src/internal/fuzz/minimize.go

    }
    
    func minimizeBytes(v []byte, try func([]byte) bool, shouldStop func() bool) {
    	tmp := make([]byte, len(v))
    	// If minimization was successful at any point during minimizeBytes,
    	// then the vals slice in (*workerServer).minimizeInput will point to
    	// tmp. Since tmp is altered while making new candidates, we need to
    	// make sure that it is equal to the correct value, v, before exiting
    	// this function.
    	defer copy(tmp, v)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 21:15:51 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/internal/fuzz/fuzz.go

    						)
    					}
    				}
    			}
    
    		case inputC <- input:
    			// Sent the next input to a worker.
    			c.sentInput(input)
    
    		case minimizeC <- minimizeInput:
    			// Sent the next input for minimization to a worker.
    			c.sentMinimizeInput(minimizeInput)
    
    		case <-statTicker.C:
    			c.logStats()
    		}
    	}
    
    	// TODO(jayconrod,katiehockman): if a crasher can't be written to the corpus,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. src/internal/fuzz/worker.go

    		defer cancel()
    	}
    
    	// Minimize the values in vals, then write to shared memory. We only write
    	// to shared memory after completing minimization.
    	success, err := ws.minimizeInput(ctx, vals, mem, args)
    	if success {
    		writeToMem(vals, mem)
    		outHash := sha256.Sum256(mem.valueCopy())
    		mem.header().rawInMem = false
    		resp.WroteToMem = true
    		if err != nil {
    			resp.Err = err.Error()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top