public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] [PATCH] [batctl] Fix array out of bound	exception
Date: Mon, 14 Dec 2009 23:24:14 +0100	[thread overview]
Message-ID: <20091214222414.GA2155@pandem0nium> (raw)
In-Reply-To: <20091211210623.GA3538@Linus-Debian>

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Dear Linus,

thank you for your patch, i have applied it in svn r1496.

On Fri, Dec 11, 2009 at 10:06:23PM +0100, Linus Lüssing wrote:
> This patch fixes an array out of bound exception in line 201 of
> functions.c. We need to reserve one extra character for the
> appended null character.
> 
> Signed-off-by: Linus Lüssing <linus.luessing@web.de>
> ---
> 
> Index: batctl/functions.c
> ===================================================================
> --- batctl/functions.c	(revision 1491)
> +++ batctl/functions.c	(working copy)
> @@ -161,10 +161,10 @@
>  
>  	if (read_opt & USE_READ_BUFF) {
>  		read_ptr = read_buff;
> -		read_len = sizeof(read_buff);
> +		read_len = sizeof(read_buff)-1;
>  	} else {
>  		read_ptr = lbuff;
> -		read_len = sizeof(lbuff);
> +		read_len = sizeof(lbuff)-1;
>  	}
>  
>  open:
> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@lists.open-mesh.net
> https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

      reply	other threads:[~2009-12-14 22:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11 21:06 [B.A.T.M.A.N.] [PATCH] [batctl] Fix array out of bound exception Linus Lüssing
2009-12-14 22:24 ` Simon Wunderlich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091214222414.GA2155@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox