반응형

일단 program template을 아래의 코드에 포함된 예시들과 코드 규율을 참고하여 작성한다.

https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/Base/ProgramBuilder.swift

https://github.com/googleprojectzero/fuzzilli/blob/main/Tests/FuzzilliTests/ProgramBuilderTest.swift

https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/CodeGen/ProgramTemplates.swift

 

그리고 가중치를 조절한다. 아래의 코드를 찾아 본인이 작성한 program template의 이름을 추가하고, 본인의 program template의 비중을 높여, 테스트를 수행한다.

https://github.com/googleprojectzero/fuzzilli/blob/main/Sources/Fuzzilli/CodeGen/ProgramTemplateWeights.swift

 

fuzzbuild는 본인의 v8 디렉터리에서 아래의 파일경로를 찾아가고 실행만 하면 된다.

/fuzzilli/Targets/V8/fuzzbuild.sh

 

 

테스트는 아래와 같은 명령어와 옵션을 본인의 입맛에 맞게 갖추어 수행한다.

swift run FuzzilliCli —profile=v8 ../v8/out/fuzzbuild/d8 —jobs=`nproc` —engine=mutation —logLevel=verbose —storagePath=../v8_fuzzing_results —timeout=1500 —inspect —exportStatistics —statisticsExportInterval=5 —diagnostics
반응형

'v8' 카테고리의 다른 글

v8 macro / library(cppgc)  (0) 2024.07.28
Memory management of the V8 Engine  (0) 2024.07.12
V8 extras  (0) 2024.05.06
Jank Busters Part One  (0) 2024.05.05
Custom startup snapshots  (0) 2024.04.25

+ Recent posts