gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-73


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-73-gf167621
Date: Mon, 06 Dec 2010 17:25:32 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  f167621203b28facef157ba3e71d17ff2f8f673f (commit)
      from  c1b296f81d42a44cfb2a4310d5d6e479efd1c8ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=f167621203b28facef157ba3e71d17ff2f8f673f


commit f167621203b28facef157ba3e71d17ff2f8f673f
Author: Daniele Forsi <address@hidden>
Date:   Mon Dec 6 18:22:58 2010 +0100

    Check for message length

diff --git a/common/links/fbus-phonet.c b/common/links/fbus-phonet.c
index 2d09a4b..fa33746 100644
--- a/common/links/fbus-phonet.c
+++ b/common/links/fbus-phonet.c
@@ -242,7 +242,9 @@ static gn_error phonet_send_message(unsigned int 
messagesize, unsigned char mess
        if (!state)
                return GN_ERR_FAILED;
 
-       /* FIXME - we should check for the message length ... */
+       if (messagesize > PHONET_TRANSMIT_MAX_LENGTH) {
+               return GN_ERR_MEMORYFULL;
+       }
 
        /* Now construct the message header. */
 

-----------------------------------------------------------------------

Summary of changes:
 common/links/fbus-phonet.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]