From f24bd5d8b1034f12b94f2867cd14f5c072508119 Mon Sep 17 00:00:00 2001 From: Bailey Capuano Date: Sun, 7 Jul 2024 19:16:12 -0600 Subject: [PATCH 1/4] Updated pdfminer yaml to file github issues for bugs --- projects/pdfminersix/project.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/pdfminersix/project.yaml b/projects/pdfminersix/project.yaml index b33e8839def3..14b83479c0fa 100644 --- a/projects/pdfminersix/project.yaml +++ b/projects/pdfminersix/project.yaml @@ -8,3 +8,4 @@ fuzzing_engines: sanitizers: - address main_repo: "https://github.com/pdfminer/pdfminer.six" +file_github_issue: True From 078b2e9bc839fca21590353228088a29290508db Mon Sep 17 00:00:00 2001 From: Bailey Capuano Date: Mon, 8 Jul 2024 11:57:38 -0600 Subject: [PATCH 2/4] Changed regex for corpus inclusion to include all samples --- projects/pdfminersix/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/pdfminersix/Dockerfile b/projects/pdfminersix/Dockerfile index a8aef1ca4060..97562f8509bf 100644 --- a/projects/pdfminersix/Dockerfile +++ b/projects/pdfminersix/Dockerfile @@ -19,6 +19,6 @@ RUN pip3 install --upgrade pip RUN mkdir $SRC/corpus RUN git clone --depth 1 https://github.com/pdfminer/pdfminer.six.git pdfminer.six \ && cp pdfminer.six/fuzzing/build.sh $SRC/ \ - && cp pdfminer.six/samples/simple* $SRC/corpus + && cp pdfminer.six/samples/* $SRC/corpus WORKDIR $SRC/pdfminer.six From 4140a945710324fe9dfb9a4250d393007fceadd4 Mon Sep 17 00:00:00 2001 From: Bailey Capuano Date: Mon, 8 Jul 2024 12:04:57 -0600 Subject: [PATCH 3/4] Fixed cp to be a recursive to flat find --- projects/pdfminersix/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/pdfminersix/Dockerfile b/projects/pdfminersix/Dockerfile index 97562f8509bf..175ce4ea6c0f 100644 --- a/projects/pdfminersix/Dockerfile +++ b/projects/pdfminersix/Dockerfile @@ -19,6 +19,7 @@ RUN pip3 install --upgrade pip RUN mkdir $SRC/corpus RUN git clone --depth 1 https://github.com/pdfminer/pdfminer.six.git pdfminer.six \ && cp pdfminer.six/fuzzing/build.sh $SRC/ \ - && cp pdfminer.six/samples/* $SRC/corpus + && mkdir $SRC/corpus \ + && find "pdfminer.six/samples/" -type f -exec cp {} "$SRC/corpus" \; WORKDIR $SRC/pdfminer.six From 6509a4529766a017b5c07356ff2691b3c674a67a Mon Sep 17 00:00:00 2001 From: Bailey Capuano Date: Mon, 8 Jul 2024 12:06:45 -0600 Subject: [PATCH 4/4] Fix mkdir not erroring out when directory exists --- projects/pdfminersix/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/pdfminersix/Dockerfile b/projects/pdfminersix/Dockerfile index 175ce4ea6c0f..cdc0127e5c91 100644 --- a/projects/pdfminersix/Dockerfile +++ b/projects/pdfminersix/Dockerfile @@ -19,7 +19,7 @@ RUN pip3 install --upgrade pip RUN mkdir $SRC/corpus RUN git clone --depth 1 https://github.com/pdfminer/pdfminer.six.git pdfminer.six \ && cp pdfminer.six/fuzzing/build.sh $SRC/ \ - && mkdir $SRC/corpus \ + && mkdir -p $SRC/corpus \ && find "pdfminer.six/samples/" -type f -exec cp {} "$SRC/corpus" \; WORKDIR $SRC/pdfminer.six