* [B.A.T.M.A.N.] [PATCHv2] batman-adv: verify tt len does not exceed packet len
@ 2013-03-04 12:26 Marek Lindner
2013-03-09 10:02 ` Marek Lindner
0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2013-03-04 12:26 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Marek Lindner
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
v2:
- simplified approach of same check
bat_iv_ogm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
index 7654b76..2ce7b28 100644
--- a/bat_iv_ogm.c
+++ b/bat_iv_ogm.c
@@ -1297,7 +1297,8 @@ static int batadv_iv_ogm_receive(struct sk_buff *skb,
batadv_ogm_packet = (struct batadv_ogm_packet *)packet_buff;
/* unpack the aggregated packets and process them one by one */
- do {
+ while (batadv_iv_ogm_aggr_packet(buff_pos, packet_len,
+ batadv_ogm_packet->tt_num_changes)) {
tt_buff = packet_buff + buff_pos + BATADV_OGM_HLEN;
batadv_iv_ogm_process(ethhdr, batadv_ogm_packet, tt_buff,
@@ -1308,8 +1309,7 @@ static int batadv_iv_ogm_receive(struct sk_buff *skb,
packet_pos = packet_buff + buff_pos;
batadv_ogm_packet = (struct batadv_ogm_packet *)packet_pos;
- } while (batadv_iv_ogm_aggr_packet(buff_pos, packet_len,
- batadv_ogm_packet->tt_num_changes));
+ }
kfree_skb(skb);
return NET_RX_SUCCESS;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: verify tt len does not exceed packet len
2013-03-04 12:26 [B.A.T.M.A.N.] [PATCHv2] batman-adv: verify tt len does not exceed packet len Marek Lindner
@ 2013-03-09 10:02 ` Marek Lindner
2013-03-09 16:17 ` Antonio Quartulli
0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2013-03-09 10:02 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Monday, March 04, 2013 20:26:05 Marek Lindner wrote:
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
>
> v2:
> - simplified approach of same check
>
> bat_iv_ogm.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied in revision e56c79f.
@Antonio: This is stable-ware.
Regards,
Marek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: verify tt len does not exceed packet len
2013-03-09 10:02 ` Marek Lindner
@ 2013-03-09 16:17 ` Antonio Quartulli
0 siblings, 0 replies; 3+ messages in thread
From: Antonio Quartulli @ 2013-03-09 16:17 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
On Sat, Mar 09, 2013 at 06:02:30PM +0800, Marek Lindner wrote:
> On Monday, March 04, 2013 20:26:05 Marek Lindner wrote:
> > Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> > ---
> >
> > v2:
> > - simplified approach of same check
> >
> > bat_iv_ogm.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Applied in revision e56c79f.
>
> @Antonio: This is stable-ware.
Yes, will take care of that.
Thanks,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-09 16:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 12:26 [B.A.T.M.A.N.] [PATCHv2] batman-adv: verify tt len does not exceed packet len Marek Lindner
2013-03-09 10:02 ` Marek Lindner
2013-03-09 16:17 ` Antonio Quartulli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox