Skip to content
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

Implement interceptors for mem* and str* functions #24

Open
fmoessbauer opened this issue Sep 19, 2019 · 0 comments
Open

Implement interceptors for mem* and str* functions #24

fmoessbauer opened this issue Sep 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@fmoessbauer
Copy link
Member

Currently, memory that is manipulated using these functions is either out-of-scope, or leads to many false-positives. To counter this, it's better to not instrument the implementation of these functions, but to intercept them and feed the processed data directly into the detector.

Be aware, just wrapping the exported symbols in ucrtbase, kernel, etc. is not sufficient, as some parts are directly inlined into the application, or aliased, or dispatched to specific implementations.

See also the function interception in DrMemory: https://github.com/DynamoRIO/drmemory/blob/d261a4dc254016355f64ebf5eff9187dccb34eb2/drmemory/replace.c#L955

@fmoessbauer fmoessbauer added the enhancement New feature or request label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant