Re: [ekhtml-devel] ekhtml lib coredum p!
Brought to you by:
jick
|
From: Jon T. <jt...@p0...> - 2006-06-21 16:06:37
|
Your users should be entering standards compliant HTML. Ekhtml =20 offers some help for poorly formed HTML, but this is particularly =20 bad. It won't be fixed in a newer version. -- Jon On Jun 21, 2006, at 12:20 AM, mingqiang.lee wrote: > yes,i know it's a reason,but it is an user's input.I can't restrict =20= > user's activities. > i think it's a bug of ekhtml,and i don't know the authors if notice =20= > this situation or not...and whether they want to fix this problem =20 > in the next version. > > > > -----=E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA:"Jon Travis" > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:2006-06-21 10:33:09 > =E6=94=B6=E4=BB=B6=E4=BA=BA:"mingqiang.lee" > =E6=8A=84=E9=80=81:"john sterling" ,ekh...@li... > =E4=B8=BB=E9=A2=98:Re: [ekhtml-devel] ekhtml lib coredum p! > > > From: "Jon Travis" > To: "mingqiang.lee" > 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> >> ?thank you for your attention=EF=BC=8Ci have resoved the coredump =20 >> problem.i think it may be a "r\n" problem,i downloaded the codes =20 >> in windows,and copy it to linux env,thus a lots of "\r\n" were =20 >> appended to the end of line.thought it does pass the compile,but =20 >> it work wrong.The second time i trimed those "\r\n" and it didn't =20 >> not coredump any more! >> ?but i found ekhtml still has some bugs.for example,if the tag is >> >> <IMG onmousewheel=3D"return bbimg(this)" style=3D"CURSOR: hand" =20 >> onclick=3Dwindow.open(this.src); alt=3D=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C= =8B=E5=8E=9F=E5=9B=BE src=3D"http://=20 >> bbsimg.qq.com/2005/01/12/006/501.jpg" onload=3D"javascript:if=20 >> (this.width>screen.width*0.7)this.style.width=3Dscreen.width*0.7;" =20= >> border=3D0> >> ?lt;/DIV> >> ekhtml can only determine the first three =20 >> attributes-"onmousewheel","style","onclick". >> does any one has idea? >> ?lt;/DIV> >> -----=E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6----- >> =E5=8F=91=E4=BB=B6=E4=BA=BA:"John Sterling" >> =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:2006-06-16 09:29:59 >> =E6=94=B6=E4=BB=B6=E4=BA=BA:"mingqiang.lee" >> =E6=8A=84=E9=80=81:ekh...@li... >> =E4=B8=BB=E9=A2=98:Re: [ekhtml-devel] ekhtml lib coredump! >> >> >> Can you provide more context? For example, what does AttrInTable =20 >> do? 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 =20 >> loop? Or after you reassign P? jks On Jun 13, 2006, at 10:41 PM, =20 >> mingqiang.lee wrote: > hello all: > I found the newest version =20 >> ekhtml would coredump!i was used to use > old version ekhtml,and =20 >> it works normally thought it has some > bugs.But after i replace =20 >> the old version with the newest one serveral > days before,i found =20= >> my program can't run any more. > > my code: > void =20 >> HtmlFilter::Handle_StartTag(void *Data, ekhtml_string_t *Tag, > =20 >> ekhtml_attr_t *Attrs) > { > ekhtml_attr_t *P =3D (ekhtml_attr_t *)=20= >> Attrs; > while (P) > { > if (AttrInTable(P->name.str, P-=20 >> >name.len))//core dump here!!! > > > does it have any problem?does =20= >> the usage of newest ekhtml lib differ > from old version? > > > > =20 >> > > > > =E4=BD=A0 =E4=B8=8D =E6=83=B3 =E8=AF=95 =E8=AF=95 =E4=BB=8A = =E5=A4=8F =E6=9C=80 =E2=80=9C=E9=85=B7=E2=80=9D =E7=9A=84 =E9=82=AE =E7=AE= =B1 =20 >> =E5=90=97 =EF=BC=9F > =E8=95=B4 =E6=B6=B5 =E4=B8=AD =E5=8D=8E =E4=BC=A0= =E7=BB=9F =E6=96=87 =E5=8C=96 =E4=BA=8E =E4=B8=96 =E7=95=8C =E4=B8=80 = =E6=B5=81 =E7=A7=91 =20 >> =E3=80=96=E2=96=A1=E8=89=8B=E3=80=96=E2=96=A1=E8=89=8B =E4=B9=8B = =E4=B8=AD=EF=BC=8C=E5=88=9B =E6=96=B0 Ajax =E3=80=96=E2=96=A1=E8=89=8B=E3=80= =96=E2=96=A1=E8=89=8B =E6=9C=AF=EF=BC=8C=20 >> 126 =E2=80=9CD =E3=80=96=E2=96=A1=E8=89=8B=E6=8E=90=E3=80=80~{=E5=88=92= =E2=80=9D=E7=81=AB =E7=83=AD =E4=BD=93 =E9=AA=8C =E4=B8=AD =EF=BC=81 > =20= >> _______________________________________________ > ekhtml-devel =20 >> mailing list > ekh...@li... > https://=20 >> lists.sourceforge.net/lists/listinfo/ekhtml-devel >> >> >> >> >> >> >> =E4=BD=A0 =E4=B8=8D =E6=83=B3 =E8=AF=95 =E8=AF=95 =E4=BB=8A =E5=A4=8F = =E6=9C=80 =E2=80=9C=E9=85=B7=E2=80=9D =E7=9A=84 =E9=82=AE =E7=AE=B1 =E5=90= =97 =EF=BC=9F >> =E8=95=B4 =E6=B6=B5 =E4=B8=AD =E5=8D=8E =E4=BC=A0 =E7=BB=9F =E6=96=87 = =E5=8C=96 =E4=BA=8E =E4=B8=96 =E7=95=8C =E4=B8=80 =E6=B5=81 =E7=A7=91 = =E6=8A=80 =E4=B9=8B =20 >> =E4=B8=AD=EF=BC=8C=E5=88=9B =E6=96=B0 Ajax =E6=8A=80 =E6=9C=AF=EF=BC=8C= 126 =E2=80=9CD =E8=AE=A1 =E5=88=92=E2=80=9D=E7=81=AB =E7=83=AD =E4=BD=93 = =E9=AA=8C =20 >> =E4=B8=AD =EF=BC=81 >> _______________________________________________ >> ekhtml-devel mailing list >> ekh...@li... >> https://lists.sourceforge.net/lists/listinfo/ekhtml-devel > > > > > > > > > =E4=BD=A0 =E4=B8=8D =E6=83=B3 =E8=AF=95 =E8=AF=95 =E4=BB=8A =E5=A4=8F = =E6=9C=80 =E2=80=9C=E9=85=B7=E2=80=9D =E7=9A=84 =E9=82=AE =E7=AE=B1 =E5=90= =97 =EF=BC=9F > =E8=95=B4 =E6=B6=B5 =E4=B8=AD =E5=8D=8E =E4=BC=A0 =E7=BB=9F =E6=96=87 = =E5=8C=96 =E4=BA=8E =E4=B8=96 =E7=95=8C =E4=B8=80 =E6=B5=81 =E7=A7=91 = =E6=8A=80 =E4=B9=8B =20 > =E4=B8=AD=EF=BC=8C=E5=88=9B =E6=96=B0 Ajax =E6=8A=80 =E6=9C=AF=EF=BC=8C1= 26 =E2=80=9CD =E8=AE=A1 =E5=88=92=E2=80=9D=E7=81=AB =E7=83=AD =E4=BD=93 = =E9=AA=8C =20 > =E4=B8=AD =EF=BC=81 |