[OpenSIPS-Devel] [ opensips-Bugs-2928267 ] infloop due to bad linkedlist traversal

SourceForge.net noreply at sourceforge.net
Fri Jan 8 14:33:09 CET 2010


Bugs item #2928267, was opened at 2010-01-08 14:33
Message generated for change (Tracker Item Submitted) made by wdoekes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2928267&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.6.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Walter Doekes (wdoekes)
Assigned to: Nobody/Anonymous (nobody)
Summary: infloop due to bad linkedlist traversal

Initial Comment:
Due to a cause unknown to me, opensips 1.6.0/1 hangs.

Gdb tells me:
0x0808292a <pv_get_hdr+1242>:	lea    0x0(%esi),%esi
0x08082930 <pv_get_hdr+1248>:	jmp    0x808292a <pv_get_hdr+1242>

1966				/* it is an un-known header -> use name to find it */
1967				for (hf0=hf->next; hf0; hf=hf0->next) {
1968					if (hf0->type==HDR_OTHER_T && hf0->name.len==tv.rs.len

That hf=hf0->next should probably be hf0=hf0->next.

Patch attached.

Regards,
Walter Doekes
OSSO B.V.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2928267&group_id=232389



More information about the Devel mailing list