CVSROOT: /sources/gnash Module name: gnash Changes by: Markus Gothe <nihilus> 07/08/23 01:57:02
Modified files: . : ChangeLog libamf : amf.cpp Log message: memcpy -> strncpy, since it does a memory access violation on Darwin (and porbably other OSes). CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4074&r2=1.4075 http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp?cvsroot=gnash&r1=1.39&r2=1.40 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.4074 retrieving revision 1.4075 diff -u -b -r1.4074 -r1.4075 --- ChangeLog 22 Aug 2007 22:53:10 -0000 1.4074 +++ ChangeLog 23 Aug 2007 01:57:02 -0000 1.4075 @@ -1,3 +1,8 @@ +2007-08-19 Markus Gothe <[EMAIL PROTECTED]> + + * libamf/amf.cpp: memcpy -> strncpy, since it does a memory + access violation on Darwin (and porbably other OSes). + 2007-08-23 Sandro Santilli <[EMAIL PROTECTED]> * testsuite/misc-mtasc.all/Makefile.am: specify input language Index: libamf/amf.cpp =================================================================== RCS file: /sources/gnash/gnash/libamf/amf.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -u -b -r1.39 -r1.40 --- libamf/amf.cpp 1 Jul 2007 10:54:05 -0000 1.39 +++ libamf/amf.cpp 23 Aug 2007 01:57:02 -0000 1.40 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: amf.cpp,v 1.39 2007/07/01 10:54:05 bjacques Exp $ */ +/* $Id: amf.cpp,v 1.40 2007/08/23 01:57:02 nihilus Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -725,7 +725,7 @@ x += sizeof(short); buf = new char[length+1]; memset(buf, 0, length+1); - memcpy(buf, x, length); + strncpy(buf, x, length); /* memcpy() does memory access violation on Darwin! */ } else { log_error("Tried to extract AMF string from non String object!"); } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit