Revision: 9074
          http://playerstage.svn.sourceforge.net/playerstage/?rev=9074&view=rev
Author:   jpgr87
Date:     2011-08-27 18:24:28 +0000 (Sat, 27 Aug 2011)
Log Message:
-----------
Applied patch #3392851: ptz sonyevid30 driver memory corruption

Modified Paths:
--------------
    code/player/trunk/server/drivers/ptz/sonyevid30.cc

Modified: code/player/trunk/server/drivers/ptz/sonyevid30.cc
===================================================================
--- code/player/trunk/server/drivers/ptz/sonyevid30.cc  2011-08-27 18:22:48 UTC 
(rev 9073)
+++ code/player/trunk/server/drivers/ptz/sonyevid30.cc  2011-08-27 18:24:28 UTC 
(rev 9074)
@@ -1204,7 +1204,7 @@
 int SonyEVID30::GetCameraType()
 {
        unsigned char command[MAX_VER_MESSAGE_LENGTH];
-       unsigned char reply[MAX_VER_REPLY_LENGTH];
+       unsigned char reply[MAX_PTZ_PACKET_LENGTH];
        int reply_len;
 
        command[0] = 0x09;
@@ -1259,7 +1259,7 @@
 int SonyEVID30::PowerOn()
 {
        unsigned char power_inq_command[] =  {0x09, 0x04, 0x00};
-       unsigned char power_inq_reply[MAX_PTZ_MESSAGE_LENGTH];
+       unsigned char power_inq_reply[MAX_PTZ_PACKET_LENGTH];
 
        int power_inq_rep_len = SendRequest(power_inq_command, 3, 
power_inq_reply);
        if (power_inq_rep_len < 4) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to