DynamoRIO / DynamoRIO/dynamorio

WriteFile redirection does not support writing to a pre-win8 console

Open
#1,089 0 comments 0 reactions 0 assignees View on GitHub
Migrated OpSys-Windows Priority-Medium
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on February 25, 2013 00:19:37_

drmem calls kernel32!WriteFile to avoid dr_fprintf buffer limits -- but now
I redirect WriteFile in priv libs and my redirection routine doesn't
support the console!

"WriteConsole fails if it is used with a standard handle that is redirected
to a file. "

thus I am disabling WriteFile redirection until we have console writing support

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1089_

Contributor guide

Open the contributing guide

Research direction

Start by tracing drmem's kernel32!WriteFile use and the WriteFile redirection routine in the priv libs. Check how standard handles behave when redirected to a file on pre-Win8 consoles, then verify that console output works before re-enabling WriteFile redirection.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.