Skip to contentSkip to conversation

Bug in rpc conntrack modules

DISCUSSION Martin Josefsson 2 participants 4 messages Apr 27, 2003 – Apr 29, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi Marcelo.

I've just found a small bug in how you handle the name member of struct ip_conntrack_helper rpc_helpers

You use one piece of memory which you overwrite for each port. The struct only holds a pointer to the string, not a copy of it. Please look at how other helpers do.

If you send me a patch against patch-o-matic I'll commit it.

Signature · 1 line
/Martin
#1 lore raw
Quoted 1 line · Martin Josefsson

Hi Marcelo.

Ok that mail bounced,
reason: 550 5.1.1 <[email protected]>... User unknown

I guess I'll have to fix it myself then.

Signature · 1 line
/Martin
#2 lore raw
In reply to Martin Josefsson
Quoted 1 line · Martin Josefsson

Hi Marcelo.

Hi Martin. Please note that I don't expect Marcelo to comment on your email. He has written this code about three years ago and I assume he has abandoned the code (which is perfectly fine, every author has the right to do so).

As the comment on top of ip_conntrack_rpc_tcp.c indicates, rusty did some porting, I merged it with newnat (IIRC), and Ian.Latter finally re-worked it again. He probably is the one most familiar with the code now.

Quoted 8 lines

I've just found a small bug in how you handle the name member of struct ip_conntrack_helper rpc_helpers

You use one piece of memory which you overwrite for each port. The struct only holds a pointer to the string, not a copy of it. Please look at how other helpers do.

If you send me a patch against patch-o-matic I'll commit it.

Martin, you'll have to fix it by yourself (or I will have to do it).

Please add a bug to bugzilla, accept it and mark it as FIXED just for keeping track of those issues.

Quoted 1 line

/Martin

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#3 lore raw
Quoted 9 lines · Harald Welte

Hi Martin. Please note that I don't expect Marcelo to comment on your email. He has written this code about three years ago and I assume he has abandoned the code (which is perfectly fine, every author has the right to do so).

As the comment on top of ip_conntrack_rpc_tcp.c indicates, rusty did some porting, I merged it with newnat (IIRC), and Ian.Latter finally re-worked it again. He probably is the one most familiar with the code now.

Yeah, I failed to look at the changelog in the patch itself, I just read .patch.help which turned out to be a mistake.

Quoted 1 line

Martin, you'll have to fix it by yourself (or I will have to do it).

Ian Latter has said he'll fix it.

Quoted 2 lines

Please add a bug to bugzilla, accept it and mark it as FIXED just for keeping track of those issues.

I'll add the bug, accept it and then mark it fixed when the patches (rpc and rsh it turns out) are fixed.

Signature · 1 line
/Martin