[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libamf amf.cpp
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/libamf amf.cpp |
Date: |
Fri, 04 Apr 2008 23:29:46 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 08/04/04 23:29:46
Modified files:
libamf : amf.cpp
Log message:
It helps to prevent core dumps if you allocate memory to a pointer
before
trying to write to it.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libamf/amf.cpp?cvsroot=gnash&r1=1.66&r2=1.67
Patches:
Index: amf.cpp
===================================================================
RCS file: /sources/gnash/gnash/libamf/amf.cpp,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -b -r1.66 -r1.67
--- amf.cpp 1 Apr 2008 22:20:40 -0000 1.66
+++ amf.cpp 4 Apr 2008 23:29:46 -0000 1.67
@@ -1235,7 +1235,7 @@
AMF::extractVariable(Network::byte_t *in)
{
// GNASH_REPORT_FUNCTION;
- Element *el;
+ Element *el = new Element;
boost::uint16_t length;
Network::byte_t *tmpptr = in;
- [Gnash-commit] gnash/libamf amf.cpp,
Rob Savoye <=