nasm/disasm
Chang S. Bae bd1055b8be disam: explicitly change stdin to binary mode
The binary mode has no difference from text mode in
POSIX-compliant operating systems. The two modes are
distinguishable from each other on Windows, and perhaps
on other systems as well.

The binary stream has scalability and other advantages.
Windows treats the standard input stream as text mode by
default. So the code changes it to binary mode.

Also, add a helper function, nasm_set_binary_mode(),
that is OS-agnostic, in the library.

Reported-by: Didier Stevens <didier.stevens@gmail.com>
Suggested-by: Didier Stevens <didier.stevens@gmail.com>
Link: https://bugzilla.nasm.us/show_bug.cgi?id=3392649
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
2020-04-22 00:09:58 +00:00
..
disasm.c Remove #includes already provided by "compiler.h" 2018-12-27 12:45:44 -08:00
disasm.h
ndisasm.c disam: explicitly change stdin to binary mode 2020-04-22 00:09:58 +00:00
sync.c Remove #includes already provided by "compiler.h" 2018-12-27 12:45:44 -08:00
sync.h