Re: [ekhtml-devel] ekhtml lib coredum p!
Brought to you by:
jick
|
From: mingqiang.lee <min...@16...> - 2006-06-21 07:20:32
|
yes,i know it's a reason,but it is an user's input.I can't restrict user'= s activities. i think it's a bug of ekhtml,and i don't know the authors if notice this = situation or not...and whether they want to fix this problem in the next = version. =20 =20 -----=D4=AD=CA=BC=D3=CA=BC=FE----- =B7=A2=BC=FE=C8=CB:"Jon Travis"=20 =B7=A2=CB=CD=CA=B1=BC=E4:2006-06-21 10:33:09 =CA=D5=BC=FE=C8=CB:"mingqiang.lee"=20 =B3=AD=CB=CD:"john sterling" ,ekh...@li... =D6=F7=CC=E2:Re: [ekhtml-devel] ekhtml lib coredum p! From: "Jon Travis"=20 To: "mingqiang.lee"=20 Date: Wed, 21 Jun 2006 10:33:09 +0800 (CST) Subject: Re: [ekhtml-devel] ekhtml lib coredum p! Because your onclick argument isn't quoted? -- Jon On Jun 18, 2006, at 7:51 PM, mingqiang.lee wrote: ?lt;/DIV>=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 cop= y it to linux env,thus a lots of "\r\n" were appended to the end of line.= thought it does pass the compile,but it work wrong.The second time i trim= ed 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> ?lt;/DIV>=20 ekhtml can only determine the first three attributes-"onmousewheel","styl= e","onclick". does any one has idea? ?lt;/DIV>=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 =A1=BC=A1=F5=F4=BB=A1=BC=A1=F5=F4=BB =D6=AE =D6=D0= =A3=AC=B4=B4 =D0=C2 Ajax =A1=BC=A1=F5=F4=BB=A1=BC=A1=F5=F4=BB =CA=F5=A3=AC= 126 =A1=B0D =A1=BC=A1=F5=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 =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=20 =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 =BC=BC =D6=AE =D6=D0=A3=AC=B4=B4 =D0=C2 Ajax =BC= =BC =CA=F5=A3=AC126 =A1=B0D =BC=C6 =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 |