From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Saroj Mahapatra Message-ID: <6d3220b4.0208031631.2e8fd04e@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: [9fans] a bug in freopen Date: Mon, 5 Aug 2002 09:55:49 +0000 Topicbox-Message-UUID: d837847a-eaca-11e9-9e20-41e7f4b1d025 There is a bug in freopen in that it checks mode[1] and mode[2] without first checking if mode[0] is NULL char. So it may access invalid memory location. Thank you, Saroj Mahapatra