trailofbits/polytracker

Factor out common code in dfsan hooks

surovic opened this issue · 1 comments

I think we could do a separate PR to refactor most of these functions (not only the ones you pointed out). Would you be OK with a follow-up that cover all of them instead of doing it here?

Originally posted by @hbrodin in #6511 (comment)

Ideally this would be handled in the various read hooks based on what functions like ftell(int fd) return. However that's not practical right now. Maybe this could be addressed the dfsan hook refactor?

Originally posted by @surovic in #6511 (comment)