stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r637394 - /stdcxx/trunk/tests/src/printf.cpp
Date Sat, 15 Mar 2008 11:25:45 GMT
Author: faridz
Date: Sat Mar 15 04:25:40 2008
New Revision: 637394

URL: http://svn.apache.org/viewvc?rev=637394&view=rev
Log:
2008-03-15 Farid Zaripov <farid_zaripov@epam.com>

	* tests/src/printf.cpp (rw_vasnprintf): Add assertion when processing
	the "%{+}" directive to detect buffer overruns.

Modified:
    stdcxx/trunk/tests/src/printf.cpp

Modified: stdcxx/trunk/tests/src/printf.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/printf.cpp?rev=637394&r1=637393&r2=637394&view=diff
==============================================================================
--- stdcxx/trunk/tests/src/printf.cpp (original)
+++ stdcxx/trunk/tests/src/printf.cpp Sat Mar 15 04:25:40 2008
@@ -977,6 +977,7 @@
         // over it
         fmt        += 4;
         buf.endoff  = *buf.pbuf ? strlen (*buf.pbuf) : 0;
+        RW_ASSERT (buf.endoff < *buf.pbufsize);
     }
     else if (*buf.pbuf)
         **buf.pbuf = '\0';



Mime
View raw message