Re: [ekhtml-devel] ekhtml lib coredum p!
Brought to you by:
jick
|
From: Jon T. <jt...@p0...> - 2006-06-21 02:33:21
|
Because your onclick argument isn't quoted? -- Jon On Jun 18, 2006, at 7:51 PM, mingqiang.lee wrote: > > 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 in =20= > 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 it =20= > work wrong.The second time i trimed those "\r\n" and it didn't not =20 > 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> > > ekhtml can only determine the first three =20 > attributes-"onmousewheel","style","onclick". > does any one has idea? > > > -----=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 do? > What does the rest of the loop look like? Do you know what is > corrupted or null? Does it happen the first time it enters the loop? > 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 =20= > use > > old version ekhtml,and it works normally thought it has some > > bugs.But after i replace the old version with the newest one =20 > serveral > > days before,i found my program can't run any more. > > > > my code: > > void HtmlFilter::Handle_StartTag(void *Data, ekhtml_string_t *Tag, > > 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 > > from old version? > > > > > > > > > > > > > > > > =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 =20= > =E3=80=96=EF=A1=BE=E8=89=8B=E3=80=96=EF=A1=BE=E8=89=8B =E4=B9=8B = =E4=B8=AD=EF=BC=8C=E5=88=9B =E6=96=B0 Ajax =E3=80=96=EF=A1=BE=E8=89=8B=E3=80= =96=EF=A1=BE=E8=89=8B =E6=9C=AF=EF=BC=8C=20 > 126 =E2=80=9CD =E3=80=96=EF=A1=BE=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 > > _______________________________________________ > > 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 > _______________________________________________ > ekhtml-devel mailing list > ekh...@li... > https://lists.sourceforge.net/lists/listinfo/ekhtml-devel |