Re: [ekhtml-devel] ekhtml lib coredum p!
Brought to you by:
jick
|
From: mingqiang.lee <min...@16...> - 2006-06-19 02:51:32
|
=20 thank you for your attention=A3=ACi have resoved the coredump problem.i= think it may be a "r\n" problem,i downloaded the codes in windows,and co= py it to linux env,thus a lots of "\r\n" were appended to the end of line= =2Ethought it does pass the compile,but it work wrong.The second time i t= rimed those "\r\n" and it didn't not coredump any more! but i found ekhtml still has some bugs.for example,if the tag is=20 <IMG onmousewheel=3D"return bbimg(this)" style=3D"CURSOR: hand" onclick=3D= window.open(this.src); alt=3D=B5=E3=BB=F7=B2=E9=BF=B4=D4=AD=CD=BC src=3D"= <A href=3D"http://bbsimg.qq.com/2005/01/12/006/501.jpg">http://bbsimg.qq.= com/2005/01/12/006/501.jpg</A>" onload=3D"javascript:if(this.width>screen= =2Ewidth*0.7)this.style.width=3Dscreen.width*0.7;" border=3D0> =20 ekhtml can only determine the first three attributes-"onmousewheel","styl= e","onclick". does any one has idea? =20 -----=D4=AD=CA=BC=D3=CA=BC=FE----- =B7=A2=BC=FE=C8=CB:"John Sterling"=20 =B7=A2=CB=CD=CA=B1=BC=E4:2006-06-16 09:29:59 =CA=D5=BC=FE=C8=CB:"mingqiang.lee"=20 =B3=AD=CB=CD:ekh...@li... =D6=F7=CC=E2:Re: [ekhtml-devel] ekhtml lib coredump! Can you provide more context? For example, what does AttrInTable do? =20 What does the rest of the loop look like? Do you know what is=20 corrupted or null? Does it happen the first time it enters the loop? =20 Or after you reassign P? jks On Jun 13, 2006, at 10:41 PM, mingqiang.lee wrote: > hello all: > I found the newest version ekhtml would coredump!i was used to use=20 > old version ekhtml,and it works normally thought it has some=20 > bugs.But after i replace the old version with the newest one serveral=20 > days before,i found my program can't run any more. > > my code: > void HtmlFilter::Handle_StartTag(void *Data, ekhtml_string_t *Tag,=20 > ekhtml_attr_t *Attrs) > { > ekhtml_attr_t *P =3D (ekhtml_attr_t *)Attrs; > while (P) > { > if (AttrInTable(P->name.str, P->name.len))//core dump here!!! > > > does it have any problem?does the usage of newest ekhtml lib differ=20 > from old version? > > > > > > > > =C4=E3 =B2=BB =CF=EB =CA=D4 =CA=D4 =BD=F1 =CF=C4 =D7=EE =A1=B0=BF=E1=A1= =B1 =B5=C4 =D3=CA =CF=E4 =C2=F0 =A3=BF > =D4=CC =BA=AD =D6=D0 =BB=AA =B4=AB =CD=B3 =CE=C4 =BB=AF =D3=DA =CA=C0 =BD= =E7 =D2=BB =C1=F7 =BF=C6 =A6=EC=F4=BB=A6=EC=F4=BB =D6=AE =D6=D0=A3=AC=B4=B4= =D0=C2 Ajax =A6=EC=F4=BB=A6=EC=F4=BB =CA=F5=A3=AC126 =A1=B0D =A6=EC=F4=BB= =C6=FE=A1=A1~{=BB=AE=A1=B1=BB=F0 =C8=C8 =CC=E5 =D1=E9 =D6=D0 =A3=A1=20 > _______________________________________________ > ekhtml-devel mailing list > ekh...@li... > https://lists.sourceforge.net/lists/listinfo/ekhtml-devel |