-
Notifications
You must be signed in to change notification settings - Fork 47
Merges function sections #6579
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
Open
kaoudis
wants to merge
112
commits into
master
Choose a base branch
from
kaoudis/merge-function-sections
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Merges function sections #6579
Changes from all commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
76d77f7
add ignoring vector types to gep tainting - otherwise I think we over…
kaoudis f39a88b
merge the relevant bits of the separate function tracing pass into tc…
kaoudis 2eee49b
remove ftrace argument uses
kaoudis d48a4f3
raise the ValueError without entering the target iteration loop for t…
kaoudis 7fa6086
start setting up tests for how I would like the fn section to work
kaoudis b75f4b1
clean up an extraneous test comment; amend doc
kaoudis 7fd92f3
alphabetic order is a bit easier to read unless there's something goi…
kaoudis 6cdb854
remove unit test whose functionality was partly deleted / partly migr…
kaoudis 83db76e
remove deleted unit tests from CMake
kaoudis 285126d
modify fnmapping so that the mapping is: cflog(function_id), fnmappin…
kaoudis 9e74b5c
update fnmapping unit test to involve function id as well
kaoudis eff25e0
first whack at recording function names to the cflog -> fnmapping -> …
kaoudis fd0b4c3
Revert "first whack at recording function names to the cflog -> fnmap…
kaoudis 9420980
record function names from the cflog pass through the instrumentation…
kaoudis 5ccf933
write the function ID as well as the string table offset of the mangl…
kaoudis 6ffa345
temporarily test just that the functions were written correctly and c…
kaoudis 3c569ec
test_polytracker seems to only cover PolyTrackerTrace, so rename it
kaoudis 52917c8
test_stdin is hanging for some reason, maybe due to how I'm writing t…
kaoudis 7d5e49b
sketch adding function_id in the right place; adds print statements t…
kaoudis fe20c52
refactor the strings table; all C++ tests but for one pass
kaoudis e5e0efd
refactors the string table somewhat - be more defensive about strings…
kaoudis 6702de5
a sketchy steel thread version of functions not coming from json file…
kaoudis f6917a4
adds a cflog label test
kaoudis 26a2ea1
first step toward removing json writer: don't write to the file
kaoudis 8df5eec
remove json writing frmo control flow low
kaoudis 3e69c3b
remove apparently unused function defn from the TCF header
kaoudis 49710b9
remove functionality that calls function that doesn't exist in an eff…
kaoudis 06954dd
inserts missing semicolon
kaoudis 1116696
remove extraneous header
kaoudis 5dda183
gets rid of the argument --taint since we do that currently by default
kaoudis 581f21c
add guards since for some reason the new functions section means the …
kaoudis 2625d02
retain (deprecated) backward compatibility to be able to read older t…
kaoudis ec28b4a
fix sections reference
kaoudis a6a4db1
remove slightly inaccurate message
kaoudis d9d1702
related to previous change, fix test
kaoudis 0d84bb8
slightly clearer label repr for tainted event
kaoudis e9a864f
fix weird compiler warning that is oddly in the region I was just loo…
kaoudis 8c7c6aa
instrument-targets msg improvement while I'm thinking about ordering …
kaoudis 5dd7208
fix seg faulting test binary: a string_view over unowned data may pre…
kaoudis 4eb2abe
add a C++ standard to C++ test binary building so test binaries behav…
kaoudis 6828c79
moves DRY usage out of the test framework and into the called code so…
kaoudis a9dac53
adds explanatory comment
kaoudis 6d4c0ec
removes extraneous comments
kaoudis 5109db7
minor naming cleanup
kaoudis 34011d4
finish commented out tdag test
kaoudis 412b786
add test inputs locale to gitignore
kaoudis 5f67bb1
trunk fmt go brrr
kaoudis 45ce1cf
fix some, but not all, bitrot in Dockerfiles not included in the poly…
kaoudis 78576f5
removes docs todo
kaoudis 794ad8b
trunk lint
kaoudis e855aad
removes stray todo
kaoudis 1ce1041
stems out the cflog-instrumented bitcode so that it is comparable to …
kaoudis e477351
Revert "trunk lint"
kaoudis 05c5b84
Reapply "trunk lint"
kaoudis d22027e
Revert "trunk fmt go brrr"
kaoudis 0b21c51
whilst making more sense of the tdag tests fix the string table comments
kaoudis 55d074d
fix Dockerfile casing warning
kaoudis c306dc2
cleans up unit tests and fleshes out the integration test with all cu…
kaoudis 47b0121
trunk fmt
kaoudis 8350eb2
document tests
kaoudis b960e16
completed numbers
kaoudis 72d789d
pin daedalus for the pdf example
kaoudis 046769b
note about weird sizing
kaoudis 50cfd0e
note about daedalus
kaoudis 1128eb6
trunk fmt'd
kaoudis 39b593e
fixes 'Multiple top-level headings in the same document markdownlint…
kaoudis 683083a
turn off some of the linter crud
kaoudis 1d02686
apparently ruff.toml wasn't being found
kaoudis 2cffa2d
fix trunk linter issues with the build workflow, mainly bumps depende…
kaoudis f191df9
shushes some more linter crud and bumps the go and node versions, rem…
kaoudis d20b845
shush the linter
kaoudis a9cafd0
shush the linter
kaoudis 5bf05de
use squashing lint bugs as an excuse to throw descriptive errors inst…
kaoudis 21f4eef
use correct comparison for types and squash some function-level type …
kaoudis fc69142
linters, hush
kaoudis dbd12a7
fixes the running of the c++ tests at least locally in act, maybe fix…
kaoudis 47a0381
don't need to grant top level read permissions
kaoudis c828f9c
trunk fmt
kaoudis e485ef1
use working source loc for poppler
kaoudis f67d249
progress toward fixing the vector type errors - and making things a b…
kaoudis 2406a5a
serves me right for letting cursor do stuff and not thinking about it
kaoudis 641a620
try turning off qt6 tests too?
kaoudis 4d64bde
comment
kaoudis 8c6e5c7
try refining the tainted control flow pass in the same fashion as the…
kaoudis be949d6
handle vector types and constants properly
kaoudis 4d70bfa
got experiment with taint tracking working - try this
kaoudis 21ea2dd
oops - checkout does mean we need to have everything committed
kaoudis 2713aa8
adn qpdf
kaoudis 2c260bd
try it with the tcf pass, just without the extra instructions... whic…
kaoudis f59a0de
adds select back
kaoudis b9eb6d4
adds ibi back
kaoudis 0a7a30a
adds invoke back
kaoudis 2a414b8
oops, uncomment out the indirect and invoke
kaoudis 121968b
try adding cflog back to mupdf example
kaoudis 9f451dc
try without extra instrs
kaoudis c1d0895
try without switch
kaoudis 4e2e77c
try with just gep - and checking if the vector element type is constant
kaoudis 8fb2938
cast to vector first before getting element
kaoudis 3ac4fab
cast to vector first before getting element
kaoudis 7242c02
try checking vector value type
kaoudis 2cedbd3
try commenting out the actual insertion and the sign extension to see…
kaoudis 8227b5e
oops, made the way we were visiting instrs transparent, but not the a…
kaoudis 4a4681a
align extraction index with the size of label_ty
kaoudis 285753c
turn select back on in tcf
kaoudis 5bcc226
ughhhh try with all the instrs except gep commented out again
kaoudis bea7a67
experiment with following the pattern used for the taint tracking ins…
kaoudis 0ef0523
why do we explicitly declare the dsfw version? gonna fafo I suppose
kaoudis 9d4f790
okay, try being custom
kaoudis 1e6d9a4
try a static cast of what is passed from the dfsw to the main instr fn
kaoudis 410ae10
try with NO visitors to see if even that breaks
kaoudis 00fab6d
uncomment branch
kaoudis a5ebbb3
uncomment branch
kaoudis 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Autoformatter friendly flake8 config (all formatting rules disabled) | ||
| [flake8] | ||
| extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5 |
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 |
|---|---|---|
|
|
@@ -6,3 +6,4 @@ | |
| plugins | ||
| user_trunk.yaml | ||
| user.yaml | ||
| tmp | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do
--taintby default now, and--ftracebecame part of--cflog!