CVSROOT: /sources/gnash Module name: gnash Branch: release_0_8_1 Changes by: Markus Gothe <nihilus> 07/08/23 02:00:13
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&only_with_tag=release_0_8_1&r1=1.3971.2.56&r2=1.3971.2.57 http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.39&r2=1.39.2.1 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3971.2.56 retrieving revision 1.3971.2.57 diff -u -b -r1.3971.2.56 -r1.3971.2.57 --- ChangeLog 22 Aug 2007 16:11:42 -0000 1.3971.2.56 +++ ChangeLog 23 Aug 2007 02:00:12 -0000 1.3971.2.57 @@ -1,3 +1,8 @@ +2007-08-23 Markus Gothe <[EMAIL PROTECTED]> + + * libamf/amf.cpp: memcpy -> strncpy, since it does a memory + access violation on Darwin (and porbably other OSes). + 2007-08-22 Sandro Santilli <[EMAIL PROTECTED]> * NEWS: add note about the 'debugLog' gnashrc fix and set Index: libamf/amf.cpp =================================================================== RCS file: /sources/gnash/gnash/libamf/amf.cpp,v retrieving revision 1.39 retrieving revision 1.39.2.1 diff -u -b -r1.39 -r1.39.2.1 --- libamf/amf.cpp 1 Jul 2007 10:54:05 -0000 1.39 +++ libamf/amf.cpp 23 Aug 2007 02:00:13 -0000 1.39.2.1 @@ -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.39.2.1 2007/08/23 02:00:13 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