[23018] in bugtraq
Re: another fatal bug in NT/2000 "Command Prompt" I/O
daemon@ATHENA.MIT.EDU (IIJIMA Hiromitsu)
Mon Oct 29 11:19:49 2001
Message-ID: <3BDCEACD.55958CF5@ht.sakura.ne.jp>
Date: Mon, 29 Oct 2001 14:36:13 +0900
From: IIJIMA Hiromitsu <delmonta@ht.sakura.ne.jp>
MIME-Version: 1.0
To: "bugtraq@securityfocus.com" <bugtraq@securityfocus.com>
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Hi Chris,
> What's interesting is...the test program was also compiled with Cygwin's
> Cygnus Win32 gcc compiler....and the problem did not occur. It seems this
> might be a bug with MS C stdio libraries?
It seems the bug is in MS console API, not in MS C library, because
- the problem occurs when the test program is compiled with Borland C++.
- substuting printf() with WriteFile(), which printf() and stdio libbary
functions internally use, will also cause the problem.
The fact that it does not occur with Cygwin's gcc may be because Cygwin's
library does many things for the purpose of supporting ANSI escape sequences
or other UNIX features.
P.S. The problem occurs on Windows XP also.
========================================================================
飯嶋 浩光 / でるもんた http://www.ht.sakura.ne.jp/~delmonta/
IIJIMA Hiromitsu, aka Delmonta mailto:delmonta@ht.sakura.ne.jp
mailto:delmonta@pop01.odn.ne.jp