[Nasm-bugs] [Bug 3392649] New: ndisasm should read stdin in binary mode in stead of text mode
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Sat Feb 15 15:04:06 PST 2020
https://bugzilla.nasm.us/show_bug.cgi?id=3392649
Bug ID: 3392649
Summary: ndisasm should read stdin in binary mode in stead of
text mode
Product: NASM
Version: 2.14.xx
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Disassembler
Assignee: nobody at nasm.us
Reporter: didier.stevens at gmail.com
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Binary from nasm.us
When reading from stdin, ndisasm doesn't put stdin in binary mode, but leaves
it in text mode.
Fix:
} else {
#ifdef _WIN32
_setmode(_fileno(stdin), _O_BINARY);
#else
freopen(NULL, "rb", stdin);
#endif
fp = stdin;
}
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list