From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/uclibc++/patches/patch-fstream_eof | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/uclibc++/patches/patch-fstream_eof (limited to 'package/uclibc++/patches/patch-fstream_eof') diff --git a/package/uclibc++/patches/patch-fstream_eof b/package/uclibc++/patches/patch-fstream_eof new file mode 100644 index 000000000..d60bee8b1 --- /dev/null +++ b/package/uclibc++/patches/patch-fstream_eof @@ -0,0 +1,15 @@ +$Id$ + * fix crash on reading from closed fstream + +--- uClibc++-0.2.1.orig/include/fstream 2006-09-04 04:28:09.000000000 +0200 ++++ uClibc++-0.2.1/include/fstream 2008-12-14 18:20:27.000000000 +0100 +@@ -201,6 +201,9 @@ namespace std{ + + */ + ++ if(fp == 0) ++ return traits::eof(); ++ + if(basic_streambuf::eback() == 0){ + //No buffer, so... + charT c; -- cgit v1.2.3