Repository navigation
Implement per-iteration leak scan for fuzzer #2564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
derekbruening
merged 14 commits into
DynamoRIO:master
from
Pastoray:drfuzz-per-iter-leak-scan
Oct 7, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d4dc1d5
WIP: Fuzz per iteration leak scan implementation
Pastoray 378f319
Add option docs
Pastoray 0fc1f13
Use macro for fuzz results file name
Pastoray 6ef41cc
Create the file only when fuzzing is specified
Pastoray 64d363f
Use different function to log only leaks and not other errors
Pastoray a74880f
Better file formatting
Pastoray 39bfcb2
Add fuzz_per_iter_leak_scan to the set of options that enable fuzzing
Pastoray ce7bd74
Mention file where fuzzing results are written
Pastoray e1ef14f
Add simple regression test per-iter leak scan
Pastoray 9a23f64
Mention related leak options for -fuzz_per_iter_leak_scan
Pastoray 6b52090
Add note on cumulative leak results for -fuzz_per_iter_leak_scan
Pastoray 53e0441
Improve logging details
Pastoray 05de02f
Test: Fail if fuzz_results.txt is missing or patterns don't match.
Pastoray 0fd9809
Fix: Add required trailing newlines to fuzz result files.
Pastoray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # ********************************************************** | ||
| # Copyright (c) 2015 Google, Inc. All rights reserved. | ||
| # ********************************************************** | ||
| # | ||
| # Dr. Memory: the memory debugger | ||
| # | ||
| # This library is free software; you can redistribute it and/or | ||
| # modify it under the terms of the GNU Lesser General Public | ||
| # License as published by the Free Software Foundation; | ||
| # version 2.1 of the License, and no later version. | ||
| # | ||
| # This library is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| # Library General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU Lesser General Public | ||
| # License along with this library; if not, write to the Free Software | ||
| # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| # | ||
| done | ||
| ~~Dr.M~~ ERRORS FOUND: | ||
| ~~Dr.M~~ 0 unique, 0 total unaddressable access(es) | ||
| ~~Dr.M~~ 0 unique, 0 total uninitialized access(es) | ||
| ~~Dr.M~~ 0 unique, 0 total invalid heap argument(s) | ||
| ~~Dr.M~~ 0 unique, 0 total warning(s) | ||
| ~~Dr.M~~ 0 unique, 1 total, 16 byte(s) of leak(s) | ||
| ~~Dr.M~~ 0 unique, 0 total, 0 byte(s) of possible leak(s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # ********************************************************** | ||
| # Copyright (c) 2015 Google, Inc. All rights reserved. | ||
| # ********************************************************** | ||
| # | ||
| # Dr. Memory: the memory debugger | ||
| # | ||
| # This library is free software; you can redistribute it and/or | ||
| # modify it under the terms of the GNU Lesser General Public | ||
| # License as published by the Free Software Foundation; | ||
| # version 2.1 of the License, and no later version. | ||
| # | ||
| # This library is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| # Library General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU Lesser General Public | ||
| # License along with this library; if not, write to the Free Software | ||
| # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| # | ||
| Thread | ||
| Iteration | ||
| Report for inputs | ||
| =========================================================================== | ||
|
|
||
| LEAKS: | ||
| 0 unique, 1 total, 16 byte(s) of leak(s) | ||
| 0 unique, 0 total, 0 byte(s) of possible leak(s) | ||
|
|
||
| POTENTIAL LEAKS: | ||
| 1 unique, 0 total, 0 byte(s) of potential leak(s) | ||
| 0 unique, 0 total, 0 byte(s) of potential possible leak(s) | ||
|
|
||
| =========================================================================== |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.