Xuanwo
06/26/2023, 7:07 AMXuanwo
06/26/2023, 7:07 AMXuanwo
06/26/2023, 7:08 AMdqhl76
06/26/2023, 7:14 AMXuanwo
06/26/2023, 7:14 AMdqhl76
07/14/2023, 2:19 AMseek operation, but I found the invalid parameter(negative value) will cause panic. I firstly thought that seek will return a Result and I can handle it like that https://gist.github.com/dqhl76/76cdb6364339ced8867db8eafdd7b7c2. But I now realize I can't do that 🥲, do you have any suggestions on how to deal with invalid input data?Xuanwo
07/14/2023, 4:01 AMXuanwo
07/14/2023, 4:01 AMXuanwo
07/14/2023, 4:01 AMXuanwo
07/14/2023, 4:02 AMlet r = op.reader("path/to/file") and than r.seek(SeekFrom::Current(-1024)).Xuanwo
07/14/2023, 4:02 AMXuanwo
07/14/2023, 4:04 AMrust
let r = op.reader("path/to/file")
r.seek(SeekFrom::Current(-1024))
we should get an error instead of panic.Xuanwo
07/14/2023, 4:05 AMdqhl76
07/14/2023, 4:18 AMdqhl76
07/14/2023, 7:20 AMUnexpected to InvalidInput and continue the fuzz test work. Sorry for wasting your timeXuanwo
07/14/2023, 7:24 AMdqhl76
07/17/2023, 8:09 AMXuanwo
07/17/2023, 8:33 AMdqhl76
07/17/2023, 2:02 PMcargo give our a warning
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/lqyue/githubProjects/incubator-opendal/core/fuzz/Cargo.toml
workspace: /Users/lqyue/githubProjects/incubator-opendal/Cargo.toml
After some search, I found I should remove [profile.release] in /core/fuzz/Cargo.toml .
Should I submit a PR right now or fix it on next PR for the new feature?Xuanwo
07/17/2023, 2:04 PMdqhl76
07/17/2023, 2:16 PMXuanwo
07/17/2023, 5:22 PMdqhl76
07/25/2023, 1:54 AMXuanwo
07/25/2023, 2:01 AMdqhl76
07/25/2023, 2:01 AMdqhl76
07/25/2023, 2:02 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1133217750211367044/image.png▾
dqhl76
07/25/2023, 2:02 AMXuanwo
07/25/2023, 2:03 AMXuanwo
07/25/2023, 2:06 AMXuanwo
07/25/2023, 2:06 AMdqhl76
07/25/2023, 2:08 AMXuanwo
07/25/2023, 2:10 AMXuanwo
07/25/2023, 2:11 AMdqhl76
07/25/2023, 2:12 AMcargo fuzz run fuzz_range_reader -- -max_total_time=200 we can use some config like thisXuanwo
07/25/2023, 2:12 AMXuanwo
07/25/2023, 2:13 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1133220462076379168/image.png▾
Xuanwo
07/25/2023, 2:13 AMdqhl76
07/25/2023, 2:13 AMdqhl76
07/25/2023, 1:28 PM-max_total_time=150). This is the test action history https://github.com/dqhl76/incubator-opendal/actions/runs/5657272294/job/15325961782 and the workflow file https://github.com/dqhl76/incubator-opendal/actions/runs/5657272294/workflow. Do you have any method to speed up the building process?dqhl76
07/25/2023, 1:30 PMdevelopment -D flag) to speed up from 12 mins to 8 mins but it is still too slow.dqhl76
07/25/2023, 1:30 PMdqhl76
07/25/2023, 1:37 PMXuanwo
07/25/2023, 2:36 PMXuanwo
07/25/2023, 2:37 PMnot block the pr means not running too long (like half an hour)dqhl76
07/25/2023, 2:47 PMXuanwo
07/26/2023, 9:44 AMXuanwo
07/26/2023, 9:44 AMfuzz-test-run-fs (fuzz_range_reader), but there is no output.dqhl76
07/26/2023, 9:45 AMcargo fuzz fmt fuzz_range_reader /Users/lqyue/CLionProjects/incubator-opendal/crash-a43d017086414fd4425807171257611ddfcc3122dqhl76
07/26/2023, 9:45 AMdqhl76
07/26/2023, 9:45 AMcargo fuzz run fuzz_range_reader /Users/lqyue/CLionProjects/incubator-opendal/crash-a43d017086414fd4425807171257611ddfcc3122dqhl76
07/26/2023, 9:45 AMXuanwo
07/26/2023, 9:45 AMdqhl76
07/26/2023, 9:46 AMdqhl76
07/26/2023, 9:46 AMXuanwo
07/26/2023, 9:46 AMdqhl76
07/26/2023, 9:46 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1133696863082659870/image.png▾
Xuanwo
07/26/2023, 9:46 AMdqhl76
07/26/2023, 9:46 AMXuanwo
07/26/2023, 9:46 AMdqhl76
07/26/2023, 9:47 AMXuanwo
07/26/2023, 9:47 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1133697084944560158/image.png▾
Xuanwo
07/26/2023, 9:47 AMXuanwo
07/26/2023, 9:48 AMXuanwo
07/26/2023, 9:48 AMXuanwo
07/26/2023, 9:49 AMdqhl76
07/26/2023, 9:49 AMdqhl76
07/26/2023, 9:50 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1133697801784664064/image.png▾
dqhl76
07/26/2023, 9:50 AMXuanwo
07/26/2023, 9:53 AMrust
range: (
130,
131,
),Xuanwo
07/26/2023, 9:53 AMdqhl76
07/26/2023, 9:53 AMXuanwo
07/26/2023, 9:53 AMXuanwo
07/26/2023, 9:53 AMXuanwo
07/26/2023, 9:54 AMdqhl76
07/26/2023, 9:55 AMdqhl76
07/26/2023, 9:58 AMXuanwo
07/26/2023, 9:59 AMXuanwo
07/26/2023, 10:07 AMdqhl76
07/26/2023, 10:11 AMXuanwo
07/26/2023, 10:12 AMXuanwo
07/26/2023, 10:13 AMdqhl76
07/26/2023, 10:13 AMdqhl76
07/26/2023, 10:14 AMXuanwo
07/26/2023, 10:15 AMXuanwo
07/26/2023, 10:17 AMXuanwo
07/26/2023, 10:17 AMdqhl76
07/26/2023, 10:19 AMseed+mutationdqhl76
07/26/2023, 10:19 AMcargo fuzz run. It will select a seed and then mutate the input by some strategyXuanwo
07/26/2023, 10:20 AMsuyanhanx
07/26/2023, 3:03 PMdqhl76
07/26/2023, 3:04 PMXuanwo
07/27/2023, 3:46 AMXuanwo
07/27/2023, 3:46 AMXuanwo
07/27/2023, 3:52 AMdqhl76
07/27/2023, 3:53 AMXuanwo
07/27/2023, 5:40 AMXuanwo
07/27/2023, 5:40 AMXuanwo
07/27/2023, 5:40 AMdqhl76
07/27/2023, 11:49 AMcargo fuzz build to skip libfuzzer build.
https://cdn.discordapp.com/attachments/1122785258501308497/1134090072082358374/image.png▾
Xuanwo
07/27/2023, 11:50 AMXuanwo
07/27/2023, 11:51 AMdqhl76
07/27/2023, 11:51 AMdqhl76
07/27/2023, 11:57 AMXuanwo
07/27/2023, 12:00 PMXuanwo
07/27/2023, 12:01 PMXuanwo
07/27/2023, 12:01 PMFuzzInput, instead, we store a total_size.dqhl76
07/27/2023, 12:04 PMdqhl76
08/04/2023, 1:42 AMdqhl76
08/04/2023, 1:46 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1136837578499305603/image.png▾
dqhl76
08/04/2023, 1:47 AMcheck build locally. It seems no problem.Xuanwo
08/04/2023, 2:02 AMdev@opendal.apache.org?dqhl76
08/04/2023, 2:02 AMdqhl76
08/04/2023, 2:03 AMdqhl76
08/04/2023, 2:03 AMXuanwo
08/04/2023, 2:03 AMXuanwo
08/04/2023, 2:04 AMXuanwo
08/04/2023, 2:04 AMdev@opendal.apache.orgdqhl76
08/04/2023, 2:04 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1136842172566605834/image.png▾
dqhl76
08/04/2023, 2:05 AMdqhl76
08/04/2023, 2:05 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1136842262207279234/image.png▾
dqhl76
08/04/2023, 2:05 AMXuanwo
08/04/2023, 2:06 AMXuanwo
08/04/2023, 2:06 AMcommits@opendal.apache.orgdqhl76
08/04/2023, 2:06 AMXuanwo
08/04/2023, 2:07 AMXuanwo
08/04/2023, 2:07 AMdqhl76
08/04/2023, 2:07 AMfile_github_issuedqhl76
08/04/2023, 2:07 AMdqhl76
08/04/2023, 2:08 AMXuanwo
08/04/2023, 2:08 AMdqhl76
08/04/2023, 2:10 AM/cc you in that. 🥰Xuanwo
08/04/2023, 2:12 AMdqhl76
08/04/2023, 5:14 AMdqhl76
08/08/2023, 1:34 AMdqhl76
08/08/2023, 1:36 AMXuanwo
08/08/2023, 1:36 AMdqhl76
08/08/2023, 1:37 AMInstall the packages via Dockerfile (example) and then link statically against them (example). Could we do that by statically link them?Xuanwo
08/08/2023, 1:38 AMXuanwo
08/08/2023, 1:38 AMdqhl76
08/08/2023, 1:42 AMPackages that are installed via Dockerfile or built as part of build.sh are not available on the bot runtime environment (where the fuzz targets run). According to that, what we do in dockerfile cannot impact the runtime environment.dqhl76
08/08/2023, 1:43 AMXuanwo
08/08/2023, 1:44 AM.env in $SRC/opendal/.env should be a no-opXuanwo
08/08/2023, 1:44 AMdqhl76
08/08/2023, 1:44 AMXuanwo
08/08/2023, 1:54 AMdqhl76
08/08/2023, 1:54 AMdqhl76
08/08/2023, 1:55 AMXuanwo
08/08/2023, 2:04 AMpython infra/helper.py run_fuzzer for testing locally.dqhl76
08/08/2023, 2:06 AMdqhl76
08/08/2023, 2:07 AMAll build artifacts needed during fuzz target execution should be inside the $OUT directory. Only those artifacts are archived and used on the bots. According to that, copy .env to $OUT cannot workdqhl76
08/08/2023, 2:24 AMdqhl76
08/08/2023, 2:25 AMdqhl76
08/08/2023, 2:25 AMXuanwo
08/08/2023, 2:25 AMXuanwo
08/08/2023, 2:25 AMXuanwo
08/08/2023, 2:26 AMXuanwo
08/08/2023, 2:26 AM/tmp.dqhl76
08/08/2023, 2:27 AMXuanwo
08/08/2023, 2:29 AMinclude_str!()Xuanwo
08/08/2023, 2:29 AMXuanwo
08/08/2023, 2:38 AMinclude_str!(".env") to include .env in binary and use dotenvy to parse them. In our CI it should be no changes.
And in OSS-Fuzz, we will build targets in mulitple times.
- add memory settings in .env
- cargo fuzz build, and rename targets to fuzz_reader_memory
- add fs settings in .env
- cargo fuzz build, and rename targets to fuzz_reader_fs
So we can test different targets.dqhl76
08/08/2023, 2:39 AMXuanwo
08/08/2023, 2:45 AMXuanwo
08/08/2023, 2:45 AMdqhl76
08/08/2023, 2:46 AMXuanwo
08/08/2023, 2:46 AMdotenvy
https://github.com/apache/incubator-opendal/blob/main/core/fuzz/utils.rs#L23-L39Xuanwo
08/08/2023, 2:47 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1138302542577680394/image.png▾
dqhl76
08/08/2023, 2:50 AMdqhl76
08/08/2023, 3:01 AMfind $OUT/ -executable -type f It will only move executable file into running containerXuanwo
08/08/2023, 3:01 AMXuanwo
08/08/2023, 3:02 AMXuanwo
08/08/2023, 3:02 AMXuanwo
08/08/2023, 3:03 AMXuanwo
08/08/2023, 3:04 AMdqhl76
08/08/2023, 3:12 AMhttps://cdn.discordapp.com/attachments/1122785258501308497/1138308619448877086/image.png▾
dqhl76
08/08/2023, 3:13 AM.env to $OUTdqhl76
08/08/2023, 3:15 AMXuanwo
08/08/2023, 3:15 AMXuanwo
08/08/2023, 3:16 AMdqhl76
08/08/2023, 3:17 AMdqhl76
08/09/2023, 3:21 AMdqhl76
08/09/2023, 3:22 AMXuanwo
08/09/2023, 3:22 AMdqhl76
08/09/2023, 3:28 AMXuanwo
08/09/2023, 3:32 AMdqhl76
08/09/2023, 3:33 AMdqhl76
08/09/2023, 3:33 AMdqhl76
08/09/2023, 3:35 AMdqhl76
08/09/2023, 3:36 AMdotenvy::from_filename_override(".fs.env"). although it is very elegantdqhl76
08/09/2023, 9:19 AM