File firebird-2.5.2-CORE-4058.patch of Package firebird
From 05ab6dfc94476837030936ac0fc822029f761c6f Mon Sep 17 00:00:00 2001
From: alexpeshkoff <alexpeshkoff@65644016-39b1-43b1-bf79-96bc8fe82c15>
Date: Wed, 6 Mar 2013 11:33:08 +0000
Subject: [PATCH] Fixed CORE-4058
git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/branches/B2_5_Release@57728 65644016-39b1-43b1-bf79-96bc8fe82c15
---
src/remote/inet.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/remote/inet.cpp b/src/remote/inet.cpp
index ba69ae4..0aef49e 100644
--- a/src/remote/inet.cpp
+++ b/src/remote/inet.cpp
@@ -1252,7 +1252,7 @@ static bool accept_connection(rem_port* port, const P_CNCT* cnct)
case CNCT_group:
{
const size_t length = id.getClumpLength();
- if (length != 0)
+ if (length <= sizeof(eff_gid) && length > 0)
{
eff_gid = 0;
memcpy(&eff_gid, id.getBytes(), length);
--
1.7.10.4