HomeSort by: relevance | last modified time | path
    Searched defs:Idx (Results 1 - 8 of 8) sorted by relevancy

  /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
FuzzerValueBitMap.h 34 uintptr_t Idx = Value % kMapSizeInBits;
35 uintptr_t WordIdx = Idx / kBitsInWord;
36 uintptr_t BitIdx = Idx % kBitsInWord;
48 inline bool Get(uintptr_t Idx) {
49 assert(Idx < kMapSizeInBits);
50 uintptr_t WordIdx = Idx / kBitsInWord;
51 uintptr_t BitIdx = Idx % kBitsInWord;
FuzzerCorpus.h 88 const Unit &operator[] (size_t Idx) const { return Inputs[Idx]->U; }
177 size_t Idx = static_cast<size_t>(CorpusDistribution(Rand));
178 assert(Idx < Inputs.size());
179 return Idx;
208 void DeleteInput(size_t Idx) {
209 InputInfo &II = *Inputs[Idx];
213 Printf("EVICTED %zd\n", Idx);
216 bool AddFeature(size_t Idx, uint32_t NewSize, bool Shrink) {
218 Idx = Idx % kFeatureSetSize
    [all...]
FuzzerMutate.cpp 78 size_t Idx = Rand(Corpus->size());
79 const Unit &Other = (*Corpus)[Idx];
109 size_t Idx = Rand(Size - N + 1);
110 // Erase Data[Idx:Idx+N].
111 memmove(Data + Idx, Data + Idx + N, Size - Idx - N);
112 // Printf("Erase: %zd %zd => %zd; Idx %zd\n", N, Size, Size - N, Idx);
    [all...]
FuzzerDriver.cpp 334 for (size_t Idx = 0; Idx < Size; Idx++) {
336 Idx, Size);
337 uint8_t OriginalByte = U[Idx];
343 U[Idx] = NewByte;
348 U[Idx] = OriginalByte;
351 Printf("CLEANSE: Replaced byte %zd with 0x%x\n", Idx, NewByte);
FuzzerTracePC.h 38 void Insert(size_t Idx, const T &Arg1, const T &Arg2) {
39 Idx = Idx % kSize;
40 Table[Idx].A = Arg1;
41 Table[Idx].B = Arg2;
58 size_t Idx = SimpleFastHash(Data, Size) % kSize;
59 MemMemWords[Idx].Set(Data, Size);
61 const Word &Get(size_t Idx) {
63 const Word &W = MemMemWords[(Idx + i) % kSize];
128 uintptr_t GetPC(size_t Idx) {
    [all...]
FuzzerTracePC.cpp 193 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits);
194 ValueProfileMap.AddValueModPrime(Idx);
435 size_t Idx = (PC & 4095) | (I << 12);
436 ValueProfileMap.AddValue(Idx);
437 TORCW.Insert(Idx ^ Hash, Word(B1, Len), Word(B2, Len));
495 uint32_t Idx = *Guard;
496 __sancov_trace_pc_pcs[Idx] = PC;
497 __sancov_trace_pc_guard_8bit_counters[Idx]++;
506 uintptr_t Idx = PC & (((uintptr_t)1 << fuzzer::TracePC::kTracePcBits) - 1);
507 __sancov_trace_pc_pcs[Idx] = PC
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/dataflow/
DataFlow.cpp 149 size_t Idx = I - 1;
150 if (Idx >= Beg && Idx < End)
151 dfsan_set_label(L, Buf + Idx, 1);
  /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
sanitizer_ring_buffer.h 56 T operator[](uptr Idx) const {
57 CHECK_LT(Idx, size());
58 sptr IdxNext = Idx + 1;
119 uptr Idx = other.Next() - (const T *)other.StartOfStorage();
120 SetNext((const T *)storage + Idx);
143 T operator[](uptr Idx) const {
144 CHECK_LT(Idx, size());
147 StorageIdx -= (sptr)(Idx + 1);

Completed in 14 milliseconds